Skip to content

Allow making releases via Github UI without CI failing #2257

Allow making releases via Github UI without CI failing

Allow making releases via Github UI without CI failing #2257

Workflow file for this run

name: docs
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions: {}
jobs:
build:
name: "Build documentation"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11 # v0.9.6
with:
environments: docs
pixi-version: "latest"
cache: false
activate-environment: true
- run: python ./docs/scripts/generate_code_ref.py
- run: zensical build --strict --clean
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: "site"
deploy:
name: "Deploy docs"
runs-on: ubuntu-24.04
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs: build
permissions:
# https://github.com/actions/deploy-pages?tab=readme-ov-file
# https://docs.github.com/en/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-cloud-providers#adding-permissions-settings
pages: write # To create pages deployments when calling the GitHub API
id-token: write # To request the OIDC JWT token
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
id: deployment