Skip to content

Commit

Permalink
travis-ci: Automatic upload artifacts to tags
Browse files Browse the repository at this point in the history
  • Loading branch information
boivie committed May 23, 2016
1 parent c39a543 commit c2b34af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ script:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && goveralls -coverprofile=profile.cov -service travis-ci -repotoken $COVERALLS_TOKEN'
after_success:
- gox -ldflags="-s -w -X main.version=${TRAVIS_TAG:-$TRAVIS_COMMIT}" -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}"
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ghr --username boivie --token $GITHUB_TOKEN --replace --prerelease --debug pre-release dist/'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ghr --username boivie --token $GITHUB_TOKEN --replace --prerelease --debug -c $TRAVIS_COMMIT latest dist/'
- '[ "${TRAVIS_TAG}" != "" ] && ghr --username boivie --token $GITHUB_TOKEN --replace -c $TRAVIS_COMMIT $TRAVIS_TAG dist/'
notifications:
email:
recipients:
Expand Down

0 comments on commit c2b34af

Please sign in to comment.