feat: Update ssg cache workflow

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