Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Holy committed Apr 6, 2021
1 parent 6ec6984 commit fbb680a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions scripts/upload-cli-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ IFS=$'\n\t'
branch=$1
arch="amd64"
bucket_name="airy-core-binaries"
version=$(cat ./VERSION)

for os in "linux" "darwin" "windows"; do
airy_bin_path=bazel-bin/cli/airy_"$os"_bin
Expand All @@ -12,22 +13,22 @@ for os in "linux" "darwin" "windows"; do

case $branch in
develop)
s3_basepath=s3://$bucket_name/develop/$os/$arch
s3_basepath="s3://$bucket_name/develop/$os/$arch"
;;
release*)
s3_basepath=s3://$bucket_name/"$(cat ./VERSION)-rc"/$os/$arch
s3_basepath="s3://$bucket_name/$version-rc/$os/$arch"
;;
main)
s3_basepath=s3://$bucket_name/"$(cat ./VERSION)"/$os/$arch
s3_basepath="s3://$bucket_name/$version/$os/$arch"
;;
*)
s3_basepath=s3://$bucket_name/"$(cat ./VERSION)-rc"/$os/$arch
s3_basepath="s3://$bucket_name/$version-rc/$os/$arch"
;;
esac

sha256sum $airy_bin_path >$airy_bin_sha_path
aws s3 cp $airy_bin_path "$s3_basepath/$filename"
aws s3 cp $airy_bin_sha_path "$s3_basepath"
aws s3 cp $airy_bin_sha_path "$s3_basepath/"
done

< ./VERSION s3 cp - s3://$bucket_name/stable.txt
aws s3 cp ./VERSION s3://$bucket_name/stable_test.txt

0 comments on commit fbb680a

Please sign in to comment.