From bec93c7a9d5622406dc55fe9c764080e1c93c567 Mon Sep 17 00:00:00 2001 From: William Petit Date: Wed, 23 Aug 2023 15:33:35 -0600 Subject: [PATCH] chore: use tag as release target --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index aac4fb5..af67bad 100644 --- a/Makefile +++ b/Makefile @@ -13,12 +13,13 @@ MKT_GITEA_RELEASE_PROJECT ?= mktools .PHONY: release release: - $(MAKE) update-changelog git tag $(MKT_PROJECT_VERSION) git tag $(MKT_PROJECT_SHORT_VERSION) git push --tags + $(MAKE) update-changelog $(MAKE) \ MKT_GITEA_RELEASE_ATTACHMENTS="CHANGELOG.md" \ + MKT_GITEA_RELEASE_COMMIT_TARGET="$(MKT_PROJECT_VERSION)" \ mkt-gitea-release @@ -28,9 +29,13 @@ clean: .PHONY: update-changelog update-changelog: - $(MAKE) MKT_GIT_CHGLOG_PROJECT_ORG=Cadoles MKT_GIT_CHGLOG_PROJECT_NAME=mktools mkt-changelog + $(MAKE) changelog git add CHANGELOG.md git commit -m "chore: update changelog" git push --tags +.PHONY: changelog +changelog: + $(MAKE) MKT_GIT_CHGLOG_PROJECT_ORG=Cadoles MKT_GIT_CHGLOG_PROJECT_NAME=mktools mkt-changelog + include tasks/*.mk \ No newline at end of file