Skip to content

Commit

Permalink
fix version not working when builded by travis
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMure committed Jan 22, 2020
1 parent 21fe06c commit d49b7cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ before_install:
- go get github.com/mitchellh/gox

after_success:
- if [ ! -z "$TRAVIS_TAG" ]; then gox -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}"; fi
- if [ ! -z "$TRAVIS_TAG" ]; then make releases; fi

deploy:
provider: releases
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ build:
install:
go install -ldflags "$(LDFLAGS)" .

.PHONY: build install
releases:
gox -ldflags "$(LDFLAGS)" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}"

.PHONY: build install releases

0 comments on commit d49b7cc

Please sign in to comment.