release: fix make tasks for auto-tagging

This commit is contained in:
Yusuke KUOKA 2019-01-22 11:25:55 +09:00
parent 5f52f96709
commit 344c20d790
1 changed files with 6 additions and 4 deletions

View File

@ -63,13 +63,15 @@ 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
git checkout master
git pull --rebase 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
bash -c 'SEMTAG_REMOTE=origin hack/semtag final -s minor'
release/patch:
git fetch origin master
git checkout master
git pull --rebase 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
bash -c 'SEMTAG_REMOTE=origin hack/semtag final -s patch'