Skip to content

Commit

Permalink
Only push releases on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Werelds committed Nov 1, 2015
1 parent 047df3f commit 46a793e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,9 @@ linux_%: export GOOS=linux
build:
gox -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}"
ifeq ($(TRAVIS),true)
ifeq ($(strip $(TRAVIS_TAG)),)
ghr --username Werelds --replace $(TRAVIS_BRANCH) dist/
else
ifneq ($(strip $(TRAVIS_TAG)),)
ghr --username Werelds --replace $(TRAVIS_TAG) dist/
endif
else
ghr --username Werelds --replace --prerelease --debug pre-release dist/
endif

# Targets
Expand Down

0 comments on commit 46a793e

Please sign in to comment.