upload-extension-cli
 1#!/usr/bin/env bash
 2
 3bash -euo pipefail
 4source script/lib/blob-store.sh
 5
 6commit=$1
 7if [ "$#" -ne 1 ] || ! [[ $commit =~ ^[0-9a-f]{40}$ ]]; then
 8    echo "Usage: $0 <git-sha>"
 9    exit 1
10fi
11
12bucket_name="zed-extension-cli"
13target_triple=$(rustc -vV | sed -n 's|host: ||p')
14
15upload_to_blob_store_public $bucket_name "target/release/zed-extension" "${commit}/${target_triple}/zed-extension"