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:
parent
2b05b7d986
commit
e305e7ef79
1 changed files with 2 additions and 2 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue