[pre-commit.ci] pre-commit autoupdate (#29) #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Documentation | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy-docs: | |
| name: Deploy Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.x | |
| - name: Cache pip dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
| path: ~/.cache/pip | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Install dependencies | |
| run: | | |
| pip install mkdocs-material mkdocstrings mkdocstrings-python | |
| pip install pillow cairosvg | |
| - name: Deploy documentation | |
| run: mkdocs gh-deploy --force |