chore(deps): Bump actions/setup-python from 6 to 7 (#307) #308
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 to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| 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@v7 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: "3.14t" | |
| - name: Cache uv dependencies | |
| uses: actions/cache@v6 | |
| with: | |
| path: ~/.cache/uv | |
| key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }} | |
| restore-keys: | | |
| uv-${{ runner.os }}- | |
| - name: Install dependencies | |
| run: uv sync --locked --group dev --group docs | |
| env: | |
| PYTHON_GIL: "0" | |
| - name: Build documentation site | |
| working-directory: site | |
| run: uv run bengal build --environment production --no-incremental --clean-output | |
| env: | |
| PYTHON_GIL: "0" | |
| - name: Verify Pages output | |
| run: | | |
| test -f site/public/index.html | |
| grep -q 'content="/kida"' site/public/index.html | |
| grep -q 'href="/kida/assets/css/' site/public/index.html | |
| ! grep -q 'href="/assets/css/' site/public/index.html | |
| - name: Prepare for upload | |
| run: | | |
| touch site/public/.nojekyll | |
| echo "" > site/public/.gitignore | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: site/public | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v5 |