1
0
Fork 0
mirror of https://github.com/zhaofengli/attic.git synced 2024-12-14 11:57:30 +00:00

.github: Fix CI cache push condition

$ATTIC_TOKEN is not available after setup.
This commit is contained in:
Zhaofeng Li 2024-10-26 12:49:18 -06:00
parent 2b05b7d986
commit e305e7ef79

View file

@ -67,7 +67,7 @@ jobs:
- name: Push build artifacts
run: |
export PATH=$HOME/.nix-profile/bin:$PATH # FIXME
if [ -n "$ATTIC_TOKEN" ]; then
if [ -n "$ATTIC_CACHE" ]; then
nix build --no-link --print-out-paths -L \
.#internalMatrix."$system".\"${{ matrix.nix }}\".attic-tests \
.#internalMatrix."$system".\"${{ matrix.nix }}\".cargoArtifacts \
@ -152,7 +152,7 @@ jobs:
- name: Push build artifacts
run: |
export PATH=$HOME/.nix-profile/bin:$PATH # FIXME
if [ -n "$ATTIC_TOKEN" ]; then
if [ -n "$ATTIC_CACHE" ]; then
nix build --no-link --print-out-paths -L \
.#attic-server-image \
.#attic-server-image-aarch64 \