From b057cf4b8499dafb8ecf7e61472f22f15d30f907 Mon Sep 17 00:00:00 2001 From: shirou Date: Fri, 1 Oct 2021 12:53:48 +0000 Subject: [PATCH] add release recipe in Makefile --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 39f199e..b91afef 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ .DEFAULT_GOAL := help SUBPKGS=cpu disk docker host internal load mem net process +TAG=$(shell date +'v3.%y.%-m' --date='last Month') help: ## Show help @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' @@ -73,3 +74,7 @@ macos_test: init_tools: go get github.com/golang/dep/cmd/dep + +release: + git tag $(TAG) + git push origin $(TAG)