We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc6fb01 commit 5469272Copy full SHA for 5469272
Makefile
@@ -2,6 +2,7 @@ SOURCE_FILES?=$$(go list ./... | grep -v /vendor/)
2
TEST_PATTERN?=.
3
TEST_OPTIONS?=
4
DEP?=$$(which dep)
5
+VERSION?=$$(cat VERSION)
6
7
ifeq ($(OS),Windows_NT)
8
DEP_VERS=dep-windows-amd64
@@ -55,6 +56,9 @@ ci: test lint ## Run all the tests and code checks
55
56
build:
57
go build
58
59
+release: ## Release new version
60
+ git tag | grep -q $(VERSION) && echo This version was released! Increase VERSION! || git tag $(VERSION) && git push origin $(VERSION)
61
+
62
# Absolutely awesome: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
63
help:
64
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
0 commit comments