Skip to content

Commit 59f271b

Browse files
committed
Makefile: don't proceed if GITHUB_TOKEN is not set
1 parent cf7a4d7 commit 59f271b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ bin/windows/amd64/$(EXECUTABLE).exe:
5656

5757
# git tag -a v$(RELEASE) -m 'release $(RELEASE)'
5858
release: clean
59+
ifndef GITHUB_TOKEN
60+
@echo "Please set GITHUB_TOKEN in the environment to perform a release"
61+
exit 1
62+
endif
5963
$(MAKE) bin/tmp/$(EXECUTABLE) $(COMPRESSED_EXECUTABLE_TARGETS)
6064
git push && git push --tags
6165
git log --format=%B $(LAST_TAG) -1 | \

0 commit comments

Comments
 (0)