11.stylix/.github/workflows/docs.yml
Daniel Thwaites b273375e6c
ci: add Cachix cache (#919)
This will improve CI performance, and may also be used locally,
although this is not officially documented at this time.

I tested the required amount of space by building a `pkgs.linkFarm`
containing all testbeds, then manually pushing this to an empty Cachix
cache.

The total space used was 274 MiB of the 5 GiB free allowance, so
Cachix is good enough to cache at least 20 commits of history,
assuming the worst case scenario of every commit changing
every derivation we build.

Fixes #880
2025-02-26 15:49:42 +00:00

42 lines
759 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 }}'
- run: nix build .#docs
- uses: actions/upload-pages-artifact@v3
with:
path: result
- uses: actions/deploy-pages@v4