Initialize v2 API #1396
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: "Sphinx Documentation" | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build Sphinx Documentation | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| python-version: ["3.9"] | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - uses: actions/setup-python@v6.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| cache-dependency-path: | | |
| pyproject.toml | |
| docker/requirements.txt | |
| - name: Install graphviz | |
| run: sudo apt-get install -y graphviz | |
| - name: Build Docs | |
| run: make docs | |
| env: | |
| SYSTEM_PYTHON: python${{ matrix.python-version }} | |
| SECRET_KEY: github-actions | |
| - name: Upload pages artifact | |
| uses: actions/upload-pages-artifact@v5.0.0 | |
| with: | |
| path: 'dist/html' | |
| deploy: | |
| needs: build | |
| if: ${{ github.ref_name == github.event.repository.default_branch }} | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: production | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5.0.0 |