Repository navigation
v9.5.1 #986
Workflow file for this run
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: Build and Deploy Docs | |
| on: | |
| push: | |
| branches: [main] | |
| release: | |
| types: [published] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.1.0 | |
| - name: Install dependencies | |
| run: | | |
| uv pip install --system -e ".[docs]" | |
| - name: Build docs | |
| run: | | |
| python - <<'PY' | |
| import adcp | |
| from pdoc import cli | |
| # Parent-package exclusions are checked before pdoc imports submodules. | |
| # Keep in sync with the tombstones restored by scripts/post_generate_fixes.py. | |
| adcp.__pdoc__ = { | |
| **getattr(adcp, "__pdoc__", {}), | |
| "types.domains.enums.format_category": False, | |
| } | |
| cli.main(cli.parser.parse_args(["--html", "--output-dir", "docs/api", "adcp"])) | |
| PY | |
| - name: Configure Pages | |
| uses: actions/configure-pages@v6 | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: docs/api/adcp | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 | |
| with: | |
| artifact_name: github-pages |