summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2023-09-27 01:10:26 +0200
committerLevente Polyak <anthraxx@archlinux.org>2023-09-27 01:12:53 +0200
commita6d43aca01eadcb4df8b888aebc58fe3d89b51d2 (patch)
tree8a0622d2e2358553b514ef69f662ad389b0e36b1 /Makefile
parent02bc8bfbc0bf5a156c784686a10c4a1a3304d953 (diff)
downloaddevtools-a6d43aca01eadcb4df8b888aebc58fe3d89b51d2.tar.xz
chore(release): streamline release make target with git-cliff and glab
Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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