From a55d34a33db5828c78ac74f466448e876539a130 Mon Sep 17 00:00:00 2001 From: firefart Date: Sat, 8 Oct 2022 18:51:28 +0200 Subject: [PATCH] makefile --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 33067ac..f090a33 100644 --- a/Makefile +++ b/Makefile @@ -33,3 +33,9 @@ lint: lint-update: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin $$(go env GOPATH)/bin/golangci-lint --version + +.PHONY: tag +tag: + @[ "${TAG}" ] && echo "Tagging a new version ${TAG}" || ( echo "TAG is not set"; exit 1 ) + git tag -a "${TAG}" -m "${TAG}" + git push origin "${TAG}"