11.stylix/.github/workflows/docs.yml
Daniel Thwaites 65c42633d4
ci: ignore Cachix errors (#952)
This commit allows CI jobs to degrade gracefully if Cachix has issues,
by skipping uploads and/or building packages from scratch rather than
failing the job.

This is in response to the recent failures on `master`, which appear to
be caused by a 502 (Bad Gateway) response while uploading some of the
build results.
2025-03-04 13:32:05 +00:00

43 lines
791 B
YAML

---
name: Docs
on: # yamllint disable-line rule:truthy
push:
branches:
- master
concurrency:
cancel-in-progress: true
group: pages
jobs:
docs:
runs-on: ubuntu-24.04
permissions:
contents: read
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v16
- uses: cachix/cachix-action@v15
with:
name: stylix
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
continue-on-error: true
- run: nix build .#docs
- uses: actions/upload-pages-artifact@v3
with:
path: result
- uses: actions/deploy-pages@v4