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
2 changed files with 5 additions and 2 deletions
  1. +1
    -1
      .travis.yml
  2. +4
    -1
      Makefile

+ 1
- 1
.travis.yml View File

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


+ 4
- 1
Makefile View File

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