Publish Docs to GitHub Pages by @devraj #21
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: publish-docs | |
| run-name: Publish Docs to GitHub Pages by @${{ github.actor }} | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - docs/** | |
| - .github/workflows/deploy-docs.yml | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v3 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.x | |
| - name: Install uv | |
| run: pip install uv | |
| - name: Sync dependencies | |
| run: uv sync --extra dev | |
| - name: Build and Publish to GH Pages | |
| run: cd docs && uv run mkdocs gh-deploy --force --clean --verbose |