31 lines
614 B
YAML
31 lines
614 B
YAML
name: Deploy MkDocs Documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.10'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install mkdocs-material
|
|
pip install mkdocstrings[python]
|
|
pip install mkdocs-git-revision-date-localized-plugin
|
|
|
|
- name: Deploy documentation
|
|
run: mkdocs gh-deploy --force
|