From a6d43aca01eadcb4df8b888aebc58fe3d89b51d2 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Wed, 27 Sep 2023 01:10:26 +0200 Subject: chore(release): streamline release make target with git-cliff and glab Signed-off-by: Levente Polyak --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bfe80a8..8ed3cb0 100644 --- a/Makefile +++ b/Makefile @@ -146,6 +146,7 @@ uninstall: $(DESTDIR)$(DATADIR) tag: + git cliff --strip=all --unreleased @echo "current version: v$(V)" @read -r -p "tag version: v" VERSION && \ sed -E "s|^V=.+|V=$$VERSION|" -i Makefile && \ @@ -153,7 +154,9 @@ tag: git tag --sign --message "Version v$$VERSION" v$$VERSION release: dist - glab release create v$(V) devtools-$(V).tar.gz* + git push --tags origin master + git cliff --version >/dev/null + glab release create v$(V) devtools-$(V).tar.gz* --milestone v$(V) --notes-file <(git cliff --strip=all --latest) dist: git archive --format=tar --prefix=devtools-$(V)/ v$(V) | gzip > devtools-$(V).tar.gz -- cgit v1.2.3-70-g09d2