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

@ -43,3 +43,8 @@ jobs:
-v \
--log-format raw \
> >(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