Semi-automate minor/patch version tagging

This commit is contained in:
Yusuke KUOKA
2019-01-22 01:23:22 +09:00
parent f813ac2642
commit 7d976e5271
3 changed files with 641 additions and 0 deletions
+12
View File
@@ -61,3 +61,15 @@ tools:
TAG = $(shell git describe --tags --abbrev=0 HEAD)
LAST = $(shell git describe --tags --abbrev=0 HEAD^)
BODY = "`git log ${LAST}..HEAD --oneline --decorate` `printf '\n\#\#\# [Build Info](${BUILD_URL})'`"
release/minor:
git fetch origin master
bash -c 'if git branch | grep autorelease; then git branch -D autorelease; else echo no branch to be cleaned; fi'
git checkout -b autorelease origin/master
hack/semtag final -s minor
release/patch:
git fetch origin master
bash -c 'if git branch | grep autorelease; then git branch -D autorelease; else echo no branch to be cleaned; fi'
git checkout -b autorelease origin/master
hack/semtag final -s patch