Skip to content

Commit

Permalink
make: add a checktoken target
Browse files Browse the repository at this point in the history
  • Loading branch information
mmlb committed Nov 7, 2017
1 parent 8ee0198 commit 319c902
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ tag:
git push --tags; \
fi

release: tag pack checksums
checktoken:
@if [[ -z $$GITHUB_TOKEN ]]; then \
echo "GITHUB_TOKEN is not set, exiting" >&2; \
exit 1; \
fi

release: checktoken tag pack checksums
github-release release \
--user $(github_user) \
--repo $(current_dir) \
Expand Down

0 comments on commit 319c902

Please sign in to comment.