name: Deploy MkDocs site to GitHub Pages
on:
push:
branches:
- master
paths:
- 'docs/**'
workflow_dispatch:
permissions:
contents: write
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
with:
python-version: '3.10'
- name: Deploy to GitHub Pages
run: |
pip install -r docs/requirements-docs.txt
mkdocs gh-deploy --force -f docs/mkdocs.yml