From 007a4a3ab686167f04e7389f86882b17168dfa94 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Thu, 20 Jun 2019 13:23:36 +0200 Subject: [PATCH] Creating dists after tagging --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 63ef8a3..4ee0aa1 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: help tests dist .DEFAULT_GOAL := help BRANCH := $(shell git rev-parse --abbrev-ref HEAD) -VERSION := $(if $(VERSION),$(VERSION),$(BRANCH)) +VERSION := $(if $(TAG),$(TAG),$(BRANCH)) help: @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) chag update $(TAG) git add --all - git commit -m 'Release $(TAG)' - git tag -s $(TAG) -m 'Release $(TAG)' + git commit -m 'RELEASE: $(TAG) Release' + git tag -s $(TAG) -m 'Release $(TAG) Release' + make dist