feat: Update ssg cache workflow
All checks were successful
Cache the SSG build / build-cache (push) Successful in 1m42s
All checks were successful
Cache the SSG build / build-cache (push) Successful in 1m42s
This commit is contained in:
parent
11edb4d7bb
commit
e7b6cef91d
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue