diff --git a/tools/travis/prepare-release.sh b/tools/travis/prepare-release.sh index f69331b8..980b31b3 100755 --- a/tools/travis/prepare-release.sh +++ b/tools/travis/prepare-release.sh @@ -1,7 +1,10 @@ #!/usr/bin/env bash +TRAVIS_ARCHIVE_FILE=snowboard-$TRAVIS_TAG.${TRAVIS_OS_NAME/osx/darwin}-amd64.tar.gz + if [[ "$TRAVIS_TEST_RESULT" == "0" ]]; then - echo "Generating snowboard-$TRAVIS_TAG.${TRAVIS_OS_NAME/osx/darwin}-amd64.tar.gz" + echo "Generating ${TRAVIS_ARCHIVE_FILE}" make go-build - tar -czf $TRAVIS_BUILD_DIR/snowboard-$TRAVIS_TAG.${TRAVIS_OS_NAME/osx/darwin}-amd64.tar.gz snowboard + tar -czf $TRAVIS_ARCHIVE_FILE snowboard + shasum -a 256 -b $TRAVIS_ARCHIVE_FILE fi