Skip to content

Update deploy-docs.yml #4

Update deploy-docs.yml

Update deploy-docs.yml #4

Workflow file for this run

name: Deploy MkDocs Site
on:
push:
branches:
- main # Change this to your default branch if different
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs pymdown-extensions mkdocs-material
- name: Build MkDocs site
run: mkdocs build --clean
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site # Path to the built MkDocs site
publish_branch: gh-pages # Target branch for deployment