Skip to content

Commit 1898b1a

Browse files
committed
add tagging to makefile
1 parent fed67bc commit 1898b1a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ lint-update:
2424
.PHONY: test
2525
test:
2626
go test -race -cover ./...
27+
28+
.PHONY: tag
29+
tag:
30+
@[ "${TAG}" ] && echo "Tagging a new version ${TAG}" || ( echo "TAG is not set"; exit 1 )
31+
git tag -a "${TAG}" -m "${TAG}"
32+
git push origin "${TAG}"

0 commit comments

Comments
 (0)