Skip to content

Commit a1dccbe

Browse files
enhanced release script
1 parent b5fbbb2 commit a1dccbe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ feedback: ## Give feedback
102102

103103
release: build ## Create a new release
104104
@type gh >/dev/null 2>&1 || (echo "Run e.g. 'brew install gh' first." >&2 ; exit 1)
105+
@echo "Checking for not committed changes..."
106+
@git diff --exit-code && git diff --cached --exit-code
107+
@echo "########################"
108+
@echo Making release for version "$(VERSION)". Press ENTER to continue...
109+
@echo "########################"
110+
@read
105111
@gh release create "v$(VERSION)" -t "Release $(VERSION) ($(DATE))" 'dist/$(APP)-$(VERSION).tar.gz'
106112

107113
build: clean ## Build the code

0 commit comments

Comments
 (0)