Makefile: avoid releasing with uncommitted changes

Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
Elijah Newren 2021-08-20 10:30:51 -07:00
parent fd64b0c7c0
commit c5af37f82c

View File

@ -91,6 +91,8 @@ github_release: update_docs
test -n "$(GITHUB_COM_TOKEN)"
test -n "$(TAGNAME)"
test -n "$$COMMIT"
# Make sure we don't have any staged or unstaged changes
git diff --quiet --staged HEAD && git diff --quiet HEAD
# Make sure 'jq' is installed
type -p jq
# Tag the release, push it to GitHub