From 48a47fee2f71eb3b86447231b8c45b3e75231f56 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Sun, 2 Nov 2025 22:56:04 -0700 Subject: [PATCH] Always upload latest-sha last --- script/upload-nightly | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/upload-nightly b/script/upload-nightly index 6f629ef98acd6784833d21f7d3e93dae95aee815..abeedc5527520965c7eb5f5714d3d757702711b0 100755 --- a/script/upload-nightly +++ b/script/upload-nightly @@ -5,8 +5,6 @@ source script/lib/blob-store.sh bucket_name="zed-nightly-host" -sha=$(git rev-parse HEAD) -echo ${sha} > ./release-artifacts/latest-sha for file_to_upload in ./release-artifacts/*; do [ -f "$file_to_upload" ] || continue @@ -14,3 +12,7 @@ for file_to_upload in ./release-artifacts/*; do upload_to_blob_store $bucket_name "$file_to_upload" "${GITHUB_SHA}/$(basename "$file_to_upload")" rm -f "$file_to_upload" done + +sha=$(git rev-parse HEAD) +echo -n ${sha} > ./release-artifacts/latest-sha +upload_to_blob_store $bucket_name "release-artifacts/latest-sha" "nightly/latest-sha"