fix(ci): remove cachix push and add magic nix cache

This commit is contained in:
Youwen Wu 2024-10-31 23:01:28 -07:00
parent b8ade68874
commit c36a000684
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -8,7 +8,10 @@ jobs:
build-nix: build-nix:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: |
actions/checkout@v4
DeterminateSystems/nix-installer-action@main
DeterminateSystems/magic-nix-cache-action@main
- name: Install Nix - name: Install Nix
uses: cachix/install-nix-action@v30 uses: cachix/install-nix-action@v30
@ -24,9 +27,9 @@ jobs:
- name: Build with cachix - name: Build with cachix
uses: cachix/cachix-action@v15 uses: cachix/cachix-action@v15
with: # with:
name: hakyll-nix-template # name: hakyll-nix-template
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} # authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: nix build --accept-flake-config - run: nix build --accept-flake-config