dgnum.eu/.forgejo/workflows/cache-ssg.yaml
Tom Hubrecht d9a0f7ad5e
Some checks reported warnings
Publish website to Codeberg Pages / publish (push) Has been cancelled
feat: Init ssg cache workflow
2023-12-05 21:31:27 +01:00

32 lines
611 B
YAML

name: Cache the SSG build
run-name: cache-ssg
on:
push:
paths:
- 'ssg/**'
jobs:
build-cache:
runs-on: debian-latest
steps:
- uses: actions/checkout@v3
with:
path: dgnum.eu
- name: Install sudo
run: apt update && apt install sudo
- name: Install Nix
uses: https://github.com/cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Install attic, build and cache
run: |
nix-env -iA npins
npins init
npins add github zhaofengli attic -b main