From 692afdca272490fc498ae052fc581f87c7f3893c Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Sun, 12 May 2024 21:53:27 +0300 Subject: [PATCH] Remove deploy artifacts after uploads (#11726) Release Notes: - N/A --- script/upload-nightly | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/upload-nightly b/script/upload-nightly index 298050b25a..e2637a39b9 100755 --- a/script/upload-nightly +++ b/script/upload-nightly @@ -39,12 +39,16 @@ case "$target" in upload_to_blob_store $bucket_name "target/x86_64-apple-darwin/release/Zed.dmg" "nightly/Zed-x86_64.dmg" upload_to_blob_store $bucket_name "target/release/Zed.dmg" "nightly/Zed.dmg" upload_to_blob_store $bucket_name "target/latest-sha" "nightly/latest-sha" + rm -f "target/aarch64-apple-darwin/release/Zed.dmg" "target/x86_64-apple-darwin/release/Zed.dmg" "target/release/Zed.dmg" + rm -f "target/latest-sha" ;; linux-targz) find . -type f -name "zed-*.tar.gz" -print0 | while IFS= read -r -d '' bundle_file; do upload_to_blob_store $bucket_name "$bundle_file" "nightly/$(basename "$bundle_file")" + rm -f "$bundle_file" done upload_to_blob_store $bucket_name "target/latest-sha" "nightly/latest-sha-linux-targz" + rm -f "target/latest-sha" ;; *) echo "Error: Unknown target '$target'"