1#!/usr/bin/env bash
2
3bash -euo pipefail
4source script/lib/blob-store.sh
5
6bucket_name="zed-nightly-host"
7
8
9for file_to_upload in ./release-artifacts/*; do
10 [ -f "$file_to_upload" ] || continue
11 upload_to_blob_store $bucket_name "$file_to_upload" "nightly/$(basename "$file_to_upload")"
12 upload_to_blob_store $bucket_name "$file_to_upload" "${GITHUB_SHA}/$(basename "$file_to_upload")"
13 rm -f "$file_to_upload"
14done
15
16sha=$(git rev-parse HEAD)
17echo -n ${sha} > ./release-artifacts/latest-sha
18upload_to_blob_store $bucket_name "release-artifacts/latest-sha" "nightly/latest-sha"