diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 7b5c3f7..eccfe0b 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -42,4 +42,9 @@ 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() + env: + CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} + run: nix build ".#top.${{ matrix.system }}" --json | jq -r .[].drvPath | cachix push hsndev \ No newline at end of file