From 0f0fdfb02b1070d74790cba7609b7149ee7a65fc Mon Sep 17 00:00:00 2001 From: William Petit Date: Thu, 23 Mar 2023 19:04:29 +0100 Subject: [PATCH] chore: use date based versioning --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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" \