Skip to content

Commit

Permalink
add tagging to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
firefart committed Apr 20, 2022
1 parent fed67bc commit 1898b1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Expand Up @@ -24,3 +24,9 @@ lint-update:
.PHONY: test
test:
go test -race -cover ./...

.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}"

0 comments on commit 1898b1a

Please sign in to comment.