Skip to content

Commit

Permalink
release make rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Seidl committed Mar 19, 2018
1 parent dc6fb01 commit 5469272
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ SOURCE_FILES?=$$(go list ./... | grep -v /vendor/)
TEST_PATTERN?=.
TEST_OPTIONS?=
DEP?=$$(which dep)
VERSION?=$$(cat VERSION)

ifeq ($(OS),Windows_NT)
DEP_VERS=dep-windows-amd64
Expand Down Expand Up @@ -55,6 +56,9 @@ ci: test lint ## Run all the tests and code checks
build:
go build

release: ## Release new version
git tag | grep -q $(VERSION) && echo This version was released! Increase VERSION! || git tag $(VERSION) && git push origin $(VERSION)

# Absolutely awesome: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
Expand Down

0 comments on commit 5469272

Please sign in to comment.