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