1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-11-06 08:39:09 +02:00

Updated release task

This commit is contained in:
Tim Voronov
2018-10-25 18:15:00 -04:00
parent 9f7aa5132d
commit b9d5faf0f3

View File

@@ -3,6 +3,7 @@
export GOPATH
VERSION ?= $(shell git describe --tags --always --dirty)
RELEASE_VERSION ?= $(version)
DIR_BIN = ./bin
DIR_PKG = ./pkg
DIR_CLI = ./cli
@@ -53,4 +54,10 @@ vet:
go vet ${DIR_CLI}/... ${DIR_PKG}/...
release:
goreleaser
ifeq ($(RELEASE_VERSION), )
echo "Release version is required"
else
git tag -a v$(RELEASE_VERSION) -m "New $(RELEASE_VERSION) version" && \
git push origin v$(RELEASE_VERSION) && \
goreleaser
endif