Update travis-ci deployment options
This commit is contained in:
parent
02f6bae479
commit
27f0436a18
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue