Merge pull request 'push to cachix if build succeeds' (#4) from cachix-push into main

Reviewed-on: #4
This commit is contained in:
Joseph Hanson 2024-05-26 20:47:08 -05:00
commit 2174c8b1bf

View file

@ -42,4 +42,9 @@ jobs:
--fallback \ --fallback \
-v \ -v \
--log-format raw \ --log-format raw \
> >(tee stdout.log) 2> >(tee /tmp/nix-build-err.log >&2) > >(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