Skip to content

Commit

Permalink
Makefile: don't proceed if GITHUB_TOKEN is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinburke1 authored and kevinburke committed Apr 29, 2020
1 parent ef80fc9 commit 572da5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ bin/windows/amd64/$(EXECUTABLE).exe:

# git tag -a v$(RELEASE) -m 'release $(RELEASE)'
release: clean
ifndef GITHUB_TOKEN
@echo "Please set GITHUB_TOKEN in the environment to perform a release"
exit 1
endif
$(MAKE) bin/tmp/$(EXECUTABLE) $(COMPRESSED_EXECUTABLE_TARGETS)
git push && git push --tags
git log --format=%B $(LAST_TAG) -1 | \
Expand Down

0 comments on commit 572da5a

Please sign in to comment.