Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

668 B
Raw Blame
#!/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"