Skip pushing to cachix when the required context is not provided

This commit is contained in:
mrkkrp 2019-06-05 19:43:07 +02:00
parent 777524b6de
commit f27a6abaf8
No known key found for this signature in database
GPG Key ID: 8564658B2889FF7C

View File

@ -23,7 +23,9 @@ jobs:
- run:
name: Push Cachix
command: |
nix-store -qR --include-outputs $(nix-instantiate default.nix) | cachix push tweag
if [ -n "$CACHIX_SIGNING_KEY" ];
then nix-store -qR --include-outputs $(nix-instantiate default.nix) | cachix push tweag;
fi
- run:
name: Build the package (includes running the tests)
command: nix-build