From 496d732aaf41492099ef0bbada4b43d99e2b7942 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Wed, 11 Sep 2024 02:41:28 +0200 Subject: [PATCH] ci: does backblaze not like tar archives? --- .github/workflows/nightly.yml | 1 + ci/nightly.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 5d1dcebfc84..4520e0ccf29 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -214,6 +214,7 @@ jobs: BUCKET: ${{ secrets.B2_BUCKET }} DAYS_TO_KEEP: ${{ secrets.B2_DAYS_TO_KEEP }} run: | + file linux_artifacts/dist.tar.gz python3 ci/nightly.py artifact windows-amd64 windows_artifacts/ python3 ci/nightly.py artifact linux-amd64 linux_artifacts/dist.tar.gz python3 ci/nightly.py artifact macos-amd64 macos_artifacts/dist.tar.gz diff --git a/ci/nightly.py b/ci/nightly.py index 080d2f2c4e1..5930783e8be 100644 --- a/ci/nightly.py +++ b/ci/nightly.py @@ -52,9 +52,9 @@ def create_and_upload_artifact_zip(platform: str, artifact: str) -> int: zip_path = os.path.join("dist", os.path.relpath(file_path, artifact)) z.write(file_path, zip_path) - if not os.path.exists(source_archive): - print(f"Error: Newly created ZIP archive {source_archive} not found.") - return 1 + if not os.path.exists(source_archive): + print(f"Error: archive {source_archive} not found.") + return 1 print("Uploading {} to {}".format(source_archive, UPLOAD_FOLDER + destination_name)) bucket = get_bucket()