chore(release): streamline release make target with git-cliff and glab

Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
This commit is contained in:
Levente Polyak 2023-09-27 01:10:26 +02:00
parent 02bc8bfbc0
commit a6d43aca01
No known key found for this signature in database
GPG Key ID: FC1B547C8D8172C8
1 changed files with 4 additions and 1 deletions

View File

@ -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