github.com/fiagdao/tendermint@v0.32.11-0.20220824195748-2087fcc480c1/scripts/publish.sh (about) 1 #!/usr/bin/env bash 2 set -e 3 4 VERSION=$1 5 DIST_DIR=./build/dist 6 7 # Get the version from the environment, or try to figure it out. 8 if [ -z $VERSION ]; then 9 VERSION=$(awk -F\" 'TMCoreSemVer =/ { print $2; exit }' < version/version.go) 10 fi 11 if [ -z "$VERSION" ]; then 12 echo "Please specify a version." 13 exit 1 14 fi 15 echo "==> Copying ${DIST_DIR} to S3..." 16 17 # copy to s3 18 aws s3 cp --recursive ${DIST_DIR} s3://tendermint/binaries/tendermint/v${VERSION} --acl public-read 19 20 exit 0