chore: Change release method of git tag on TravisCI

This commit is contained in:
tsuyoshiwada 2018-02-24 01:05:15 +09:00
parent b01be88230
commit c7ca5ce738

View file

@ -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/