feat: Update ssg cache workflow
All checks were successful
Cache the SSG build / build-cache (push) Successful in 1m42s

This commit is contained in:
Tom Hubrecht 2023-12-05 21:33:07 +01:00
parent 11edb4d7bb
commit e7b6cef91d

View file

@ -5,6 +5,7 @@ on:
push: push:
paths: paths:
- 'ssg/**' - 'ssg/**'
- '.forgejo/workflows/cache-ssg.yaml'
jobs: jobs:
build-cache: build-cache:
@ -15,7 +16,7 @@ jobs:
path: dgnum.eu path: dgnum.eu
- name: Install sudo - name: Install sudo
run: apt update && apt install sudo run: apt-get update && apt-get install sudo
- name: Install Nix - name: Install Nix
uses: https://github.com/cachix/install-nix-action@v22 uses: https://github.com/cachix/install-nix-action@v22
@ -24,8 +25,7 @@ jobs:
- name: Install attic, build and cache - name: Install attic, build and cache
run: | run: |
nix-env -iA npins nix-env -i npins -f '<nixpkgs>'
npins init npins init
npins add github zhaofengli attic -b main npins add github zhaofengli attic -b main