Update #6
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: Deploy Documentation | |
| on: | |
| push: | |
| branches: | |
| - 'feature/wiki-gh-pages' | |
| tags: | |
| - '**' | |
| jobs: | |
| deploy-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Poetry and dependencies | |
| run: | | |
| curl -sSL https://install.python-poetry.org | python3 - | |
| echo "${HOME}/.local/bin" >> $GITHUB_PATH | |
| poetry install --with docs | |
| - name: Sync gh-pages branch locally | |
| run: | | |
| git fetch origin gh-pages:gh-pages || git checkout --orphan gh-pages | |
| git reset --hard origin/gh-pages || true | |
| - name: Debug current directory and files | |
| run: | | |
| pwd | |
| ls -la | |
| - name: Deploy docs | |
| run: | | |
| poetry run mkdocs gh-deploy --config-file docs/mkdocs.yml --clean --force |