Files
zed/script/upload-nightly
Conrad Irwin 4da5675920 Re-use the existing bundle steps for nightly too (#41699)
One of the reasons we didn't spot that we were missing the telemetry env
vars for the production builds was that nightly (which was working) had
its own set of build steps. This re-uses those and pushes the env vars
down from the workflow to the job.

It also fixes nightly releases to upload all-in-one go so that all
platforms update in sync.

Closes #41655

Release Notes:

- N/A
2025-11-03 12:29:22 -07:00

19 lines
587 B
Bash
Executable File

#!/usr/bin/env bash
bash -euo pipefail
source script/lib/blob-store.sh
bucket_name="zed-nightly-host"
for file_to_upload in ./release-artifacts/*; do
[ -f "$file_to_upload" ] || continue
upload_to_blob_store $bucket_name "$file_to_upload" "nightly/$(basename "$file_to_upload")"
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"