ci: checkout via Nix rather than action (#280)

This is closer to how users would install Stylix. It may also be
slightly faster since there's one less action to process.
This commit is contained in:
Daniel Thwaites 2024-03-13 10:52:34 +00:00 committed by GitHub
parent d0b264e216
commit 1adbaaf45c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 12 deletions

View file

@ -25,11 +25,8 @@ jobs:
- name: Set up cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Checkout repository
uses: actions/checkout@v4
- name: Build docs
run: nix -L build .#docs
run: nix -L build github:${{ github.repository }}/${{ github.sha }}#docs
- name: Prepare docs for upload
run: cp -r --dereference --no-preserve=mode,ownership result/ public/