Browse Source

fix version not working when builded by travis

pull/5/merge v0.2.4
Michael Muré 1 year ago
parent
commit
d49b7cc8e9
No known key found for this signature in database GPG Key ID: A4457C029293126F
  1. 2
      .travis.yml
  2. 5
      Makefile

2
.travis.yml

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

5
Makefile

@ -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
Loading…
Cancel
Save