Bump actions/upload-pages-artifact from 4 to 5 #26
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: Documentation | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - ".devcontainer/**" | |
| - ".github/workflows/CI.yml" | |
| - ".github/workflows/codeql.yml" | |
| - ".github/workflows/publish.yml" | |
| - ".github/dependabot.yml" | |
| - ".vscode/**" | |
| - "tests/**" | |
| - ".dockerignore" | |
| - ".git*" | |
| - "Dockerfile" | |
| - "LICENSE" | |
| - "Makefile" | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: uv sync --dev | |
| - name: Build documentation | |
| run: | | |
| cd docs | |
| uv run sphinx-build -b html . _build/html | |
| touch _build/html/.nojekyll | |
| - name: Setup Pages | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: actions/configure-pages@v6 | |
| - name: Upload artifact for GitHub Pages | |
| uses: actions/upload-pages-artifact@v5 | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| with: | |
| path: docs/_build/html/ | |
| - name: Upload documentation artifact (PR) | |
| uses: actions/upload-artifact@v7 | |
| if: github.event_name == 'pull_request' | |
| with: | |
| name: documentation | |
| path: docs/_build/html/ | |
| deploy: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |