Skip to content

Commit

Permalink
chore: Change release method of git tag on TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
wadackel committed Feb 23, 2018
1 parent b01be88 commit c7ca5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

REPO_ROOT=$(git rev-parse --show-toplevel)

if [[ "$TRAVIS_BRANCH" == "master" ]]; then
if [[ "$TRAVIS_BRANCH" == "master" ]] && [[ "$TRAVIS_TAG" != "" ]] && [[ "$TRAVIS_PULL_REQUEST" != "" ]]; then
echo "Start release ..."
gox -os="darwin linux windows" -arch="amd64 386" -output="$REPO_ROOT/dist/{{.Dir}}_{{.OS}}_{{.Arch}}" ./cmd/git-chglog
ghr --username git-chglog --token $GITHUB_TOKEN --replace `grep 'Version =' ./cmd/git-chglog/version.go | sed -E 's/.*"(.+)"$$/\1/'` dist/
Expand Down

0 comments on commit c7ca5ce

Please sign in to comment.