Remove deploy artifacts after uploads (#11726)

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2024-05-12 21:53:27 +03:00 committed by GitHub
parent 6657e301cd
commit 692afdca27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'"