Skip to content

Commit

Permalink
enhanced release script
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWillner committed Jun 6, 2021
1 parent b5fbbb2 commit a1dccbe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ feedback: ## Give feedback

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

build: clean ## Build the code
Expand Down

0 comments on commit a1dccbe

Please sign in to comment.