fix: version generate

This commit is contained in:
Jon Lundy
2023-01-06 13:30:33 -07:00
parent e6a79496e8
commit 8ccdd9e013
6 changed files with 19 additions and 13 deletions

View File

@@ -3,7 +3,8 @@ BUMP?=current
DATE:=$(shell date -u +%FT%TZ)
HASH:=$(shell git rev-parse HEAD 2> /dev/null)
VERSION:=$(shell BUMP=$(BUMP) ./version.sh)
-include local.mk
DISABLE_VCARD=true
build: $(NAME)
@@ -12,11 +13,14 @@ clean:
version:
@echo $(VERSION)
tag:
git tag -a v$(VERSION) -m "Version: $(VERSION)"
git push --follow-tags
release:
@make tag BUMP=patch
run:
go run -v \
-ldflags "\