Merge #34: Fix release builds when multlple Go version builds are used

4460942 Fix release builds when multlple Go version builds are used (Hugo Landau)

Pull request description:

Tree-SHA512: 70ebaf015ad1da903333ed193dd85ccbe1298192237f1ffd72a23529ef0088750d6ff710502772e0a016be3a9e6c3f1a9c2144f24699e196b5652de046c0f757
pull/35/head
JeremyRand 7 years ago
commit a95021559b
No known key found for this signature in database
GPG Key ID: B3F2D165786D6570

@ -25,3 +25,5 @@ after_success:
env:
# GITHUB_TOKEN for automatic releases
- secure: "at1oJs7ib7glx3W+zk+OkT041LdknVXirIhN403CIihVUrlOhODY7yCTgvF4Rk0jYBJiT35Q2qxpgfWF2qGnsNsQmjG3ydDWQDCepDc/CgXfLyoiSTJK5vTK72dYWTVsBTycXbj1CbSy2X2ah/KWjc4RcgZ67ER7mDpRU5nFeow="
# Set this to the Go version to use for releases (must appear in version list above).
- RELEASE_GO_VERSION="1.8"

@ -11,6 +11,11 @@ if [ -z "$GITHUB_TOKEN" ]; then
return 0
fi
if [[ "${TRAVIS_GO_VERSION}." != "${RELEASE_GO_VERSION}."* ]]; then
echo "Travis Go version ($TRAVIS_GO_VERSION) is not the releasing version ($RELEASE_GO_VERSION), not releasing."
return 0
fi
# Make archives.
echo Archiving releases...
SRC_DIR="$(pwd)"

Loading…
Cancel
Save