diff --git a/Makefile b/Makefile index c8e7906..61ab4c6 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,8 @@ GOTEST_ARGS ?= -short ESBUILD_VERSION ?= v0.17.5 GIT_VERSION := $(shell git describe --always) +DATE_VERSION := $(shell date +%Y.%-m.%-d) +FULL_VERSION := v$(DATE_VERSION)-$(GIT_VERSION)$(if $(shell git diff --stat),-dirty,) build: build-edge-cli @@ -69,8 +71,8 @@ gitea-release: tools/gitea-release/bin/gitea-release.sh build GITEA_RELEASE_PROJECT="edge" \ GITEA_RELEASE_ORG="arcad" \ GITEA_RELEASE_BASE_URL="https://forge.cadoles.com" \ - GITEA_RELEASE_VERSION="$(GIT_VERSION)" \ - GITEA_RELEASE_NAME="$(GIT_VERSION)" \ + GITEA_RELEASE_VERSION="$(FULL_VERSION)" \ + GITEA_RELEASE_NAME="$(FULL_VERSION)" \ GITEA_RELEASE_COMMITISH_TARGET="$(GIT_VERSION)" \ GITEA_RELEASE_IS_DRAFT="false" \ GITEA_RELEASE_IS_PRERELEASE="true" \