Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(release): fix git tag version
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Jul 17, 2019
1 parent 1411a48 commit 7f3b2fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion release.sh
Expand Up @@ -7,7 +7,7 @@
set -e

INIT_FILE='gnes/__init__.py'
TMP_INIT_FILE='.__init__.py.tmp'
TMP_INIT_FILE='./__init__.py.tmp'
VER_TAG='__version__ = '
SOURCE_ORIGIN='origin'

Expand Down Expand Up @@ -41,9 +41,12 @@ function pub_pypi {
}

function pub_gittag {
git add $INIT_FILE
git commit -m "chore(version): bumping version to $VER"
git tag $VER -m "$(cat ./CHANGELOG.tmp)"
# git remote add $SOURCE_ORIGIN https://hanxiao:${GITHUB_ACCESS_TOKEN}@github.com/gnes-ai/gnes.git
git push $SOURCE_ORIGIN $VER
git checkout master
}

function make_chore_pr {
Expand Down

0 comments on commit 7f3b2fb

Please sign in to comment.