All of them targeted Node 20, which the runners now force onto Node 24. Two nested ones came along with their parents: actions/upload-artifact inside upload-pages-artifact, and actions/github-script inside codecov-action. setup-uv v10 disables the cache under enable-cache: auto for release, workflow_run and pull_request_target. Every job that caches passes enable-cache: true explicitly, so none of them lose it.
39 lines
893 B
YAML
39 lines
893 B
YAML
name: build-docs
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
concurrency:
|
|
group: pages-${{ github.ref }}
|
|
cancel-in-progress: false
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: astral-sh/setup-uv@v10.0.1
|
|
- run: uv sync --group dev
|
|
- run: uv run zensical build
|
|
- uses: actions/configure-pages@v6
|
|
if: github.event_name == 'push'
|
|
- uses: actions/upload-pages-artifact@v5
|
|
if: github.event_name == 'push'
|
|
with:
|
|
path: ./site
|
|
deploy:
|
|
needs: build
|
|
if: github.event_name == 'push'
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
steps:
|
|
- id: deployment
|
|
uses: actions/deploy-pages@v5
|