mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-23 12:37:09 +00:00
Fixes <img width="1238" height="520" alt="image" src="https://github.com/user-attachments/assets/5e6c0d93-660f-4d1a-ab8c-c9c269292eaa" /> If a parent script with `-euo pipefail` invokes a script, that does not inherit the `-euo pipefail` option. Fix that by adding the flags to the scripts needed and adjust the curl command to fail too. Release Notes: - N/A
17 lines
668 B
Bash
Executable file
17 lines
668 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
source script/lib/blob-store.sh
|
|
|
|
bucket_name="zed-nightly-host"
|
|
version=$(./script/get-crate-version zed)+nightly."${GITHUB_RUN_NUMBER}.${GITHUB_SHA}"
|
|
|
|
for file_to_upload in ./release-artifacts/*; do
|
|
[ -f "$file_to_upload" ] || continue
|
|
upload_to_blob_store_public $bucket_name "$file_to_upload" "nightly/$(basename "$file_to_upload")"
|
|
upload_to_blob_store_public $bucket_name "$file_to_upload" "${version}/$(basename "$file_to_upload")"
|
|
rm -f "$file_to_upload"
|
|
done
|
|
|
|
echo -n ${version} > ./release-artifacts/latest-sha
|
|
upload_to_blob_store_public $bucket_name "release-artifacts/latest-sha" "nightly/latest-sha"
|