Skip to content

Merge pull request #17 from YlmfGo/main #71

Merge pull request #17 from YlmfGo/main

Merge pull request #17 from YlmfGo/main #71

Workflow file for this run

name: Build MkDocs and Deploy to GitHub Pages
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
strategy:
matrix:
# Use these Python versions
python: [
3.11.1, # Current latest Python
]
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Show Python version
run: python --version
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build
run: |
mkdocs build
- name: Deploy to GitHub Pages
run: |
mkdocs gh-deploy --force