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
545 B

  1. #!/usr/bin/env bash
  2. set -eu
  3. VERSION=$1
  4. DIST_DIR=$2 # ./build/dist
  5. # Get the version from the environment, or try to figure it out.
  6. if [ -z $VERSION ]; then
  7. VERSION=$(awk -F\" '/Version =/ { 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. # copy to s3
  14. aws s3 cp --recursive ${DIST_DIR} s3://tendermint/${VERSION} --acl public-read --exclude "*" --include "*.zip"
  15. aws s3 cp ${DIST_DIR}/tendermint_${VERSION}_SHA256SUMS s3://tendermint/0.9.0 --acl public-read
  16. exit 0