Skip to content

Commit 319c902

Browse files
committed
make: add a checktoken target
1 parent 8ee0198 commit 319c902

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,13 @@ tag:
8686
git push --tags; \
8787
fi
8888

89-
release: tag pack checksums
89+
checktoken:
90+
@if [[ -z $$GITHUB_TOKEN ]]; then \
91+
echo "GITHUB_TOKEN is not set, exiting" >&2; \
92+
exit 1; \
93+
fi
94+
95+
release: checktoken tag pack checksums
9096
github-release release \
9197
--user $(github_user) \
9298
--repo $(current_dir) \

0 commit comments

Comments
 (0)