| 1 |
name: mkdocs |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- main |
| 7 |
paths: |
| 8 |
- docs/** |
| 9 |
- docs_theme/** |
| 10 |
- pyproject.toml |
| 11 |
- mkdocs.yml |
| 12 |
- .github/workflows/mkdocs-deploy.yml |
| 13 |
|
| 14 |
jobs: |
| 15 |
deploy: |
| 16 |
runs-on: ubuntu-latest |
| 17 |
environment: github-pages |
| 18 |
permissions: |
| 19 |
contents: write |
| 20 |
concurrency: |
| 21 |
group: ${{ github.workflow }}-${{ github.ref }} |
| 22 |
steps: |
| 23 |
- uses: actions/checkout@v7 |
| 24 |
- run: git fetch --no-tags --prune --depth=1 origin gh-pages |
| 25 |
- uses: actions/[email protected] |
| 26 |
with: |
| 27 |
python-version: 3.x |
| 28 |
- run: pip install --group docs |
| 29 |
- run: mkdocs gh-deploy |