docs.yml (808B)
1 name: Deploy Documentation 2 3 on: 4 push: 5 branches: [main] 6 paths: 7 - "**/*.md" 8 - "mkdocs.yml" 9 - "requirements-docs.txt" 10 - ".pages" 11 - "**/.pages" 12 workflow_dispatch: 13 14 permissions: 15 contents: write 16 17 jobs: 18 deploy: 19 runs-on: ubuntu-latest 20 steps: 21 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 22 with: 23 fetch-depth: 0 24 persist-credentials: false 25 26 - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 27 with: 28 python-version: "3.12" 29 cache: pip 30 cache-dependency-path: requirements-docs.txt 31 32 - name: Install dependencies 33 run: pip install -r requirements-docs.txt 34 35 - name: Deploy to GitHub Pages 36 run: mkdocs gh-deploy --force