Creating dists after tagging

This commit is contained in:
Jeroen De Meerleer 2019-06-20 13:23:36 +02:00
parent 0e87345e65
commit 007a4a3ab6
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -1,7 +1,7 @@
.PHONY: help tests dist .PHONY: help tests dist
.DEFAULT_GOAL := help .DEFAULT_GOAL := help
BRANCH := $(shell git rev-parse --abbrev-ref HEAD) BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
VERSION := $(if $(VERSION),$(VERSION),$(BRANCH)) VERSION := $(if $(TAG),$(TAG),$(BRANCH))
help: help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-12s\033[0m %s\n", $$1, $$2}' @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-12s\033[0m %s\n", $$1, $$2}'
@ -54,5 +54,6 @@ tag: ## Creates a new signed git tag
@echo Tagging $(TAG) @echo Tagging $(TAG)
chag update $(TAG) chag update $(TAG)
git add --all git add --all
git commit -m 'Release $(TAG)' git commit -m 'RELEASE: $(TAG) Release'
git tag -s $(TAG) -m 'Release $(TAG)' git tag -s $(TAG) -m 'Release $(TAG) Release'
make dist