Skip to content

fix: ensure deployment to the correct GitHub Pages branch #5

fix: ensure deployment to the correct GitHub Pages branch

fix: ensure deployment to the correct GitHub Pages branch #5

Workflow file for this run

name: Deploy MkDocs site
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: pip install mkdocs mkdocs-material
- name: Build site
run: mkdocs build --site-dir site
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
publish_branch: gh-pages