From 11edb4d7bb74b1ab1d476abe0b72e3f6f0ac3b2a Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Tue, 5 Dec 2023 21:29:05 +0100 Subject: [PATCH] feat: Init ssg cache workflow --- .forgejo/workflows/cache-ssg.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .forgejo/workflows/cache-ssg.yaml diff --git a/.forgejo/workflows/cache-ssg.yaml b/.forgejo/workflows/cache-ssg.yaml new file mode 100644 index 0000000..5025c14 --- /dev/null +++ b/.forgejo/workflows/cache-ssg.yaml @@ -0,0 +1,31 @@ +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 +