From 0e9ebf5d8d4e8b8b593736d2d38ded6961eccb8b Mon Sep 17 00:00:00 2001 From: jahanson Date: Sun, 26 May 2024 17:16:42 -0500 Subject: [PATCH] push to cachix if build succeeds --- .forgejo/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 7b5c3f7..f7ba566 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -42,4 +42,7 @@ jobs: --fallback \ -v \ --log-format raw \ - > >(tee stdout.log) 2> >(tee /tmp/nix-build-err.log >&2) \ No newline at end of file + > >(tee stdout.log) 2> >(tee /tmp/nix-build-err.log >&2) + - name: Push to Cachix + if: success() + run: nix build ".#top.${{ matrix.system }}" --json | jq -r .[].drvPath | cachix push hsndev \ No newline at end of file