From 27f0436a1868498ab0242a9dabf14bc73c89f9de Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Tue, 17 May 2016 11:50:55 -0400 Subject: [PATCH] Update travis-ci deployment options --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6d009b2..af45c38 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ go: - 1.6 env: - - DATE=$(date '+%s') BUILD_VERSION='v0.1.0' + - DATE=$(date '+%s') before_install: - go get github.com/mitchellh/gox @@ -12,4 +12,4 @@ before_install: after_success: - "[ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ] && gox -ldflags \"-X 'main.buildVersion=${BUILD_VERSION} (${TRAVIS_COMMIT})' -X 'main.buildDate=${DATE}'\" -output \"dist/hoarder_{{.OS}}_{{.Arch}}\" ./cmd/hoarder || false" - - '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ghr --username tblyler --token "${GITHUB_TOKEN}" --replace --prerelease --debug "${BUILD_VERSION}" dist/ || false' + - '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ghr --username tblyler --token "${GITHUB_TOKEN}" --replace --prerelease --debug "${TRAVIS_BRANCH}-prerelease" dist/ || false'