chore: use tag as release target

This commit is contained in:
wpetit 2023-08-23 15:33:35 -06:00
parent 8b361ede1d
commit bec93c7a9d
1 changed files with 7 additions and 2 deletions

View File

@ -13,12 +13,13 @@ MKT_GITEA_RELEASE_PROJECT ?= mktools
.PHONY: release .PHONY: release
release: release:
$(MAKE) update-changelog
git tag $(MKT_PROJECT_VERSION) git tag $(MKT_PROJECT_VERSION)
git tag $(MKT_PROJECT_SHORT_VERSION) git tag $(MKT_PROJECT_SHORT_VERSION)
git push --tags git push --tags
$(MAKE) update-changelog
$(MAKE) \ $(MAKE) \
MKT_GITEA_RELEASE_ATTACHMENTS="CHANGELOG.md" \ MKT_GITEA_RELEASE_ATTACHMENTS="CHANGELOG.md" \
MKT_GITEA_RELEASE_COMMIT_TARGET="$(MKT_PROJECT_VERSION)" \
mkt-gitea-release mkt-gitea-release
@ -28,9 +29,13 @@ clean:
.PHONY: update-changelog .PHONY: update-changelog
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 add CHANGELOG.md
git commit -m "chore: update changelog" git commit -m "chore: update changelog"
git push --tags git push --tags
.PHONY: changelog
changelog:
$(MAKE) MKT_GIT_CHGLOG_PROJECT_ORG=Cadoles MKT_GIT_CHGLOG_PROJECT_NAME=mktools mkt-changelog
include tasks/*.mk include tasks/*.mk