You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
476 B

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