File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22YEAR=$( date +" %Y" )
33MONTH=$( date +" %m" )
4- git config --global user.email " ${GIT_EMAIL} "
5- git config --global user.name " ${GIT_NAME} "
6- git config --global push.default simple
7- git remote add origin https://${GH_TOKEN} @github.com/${TRAVIS_REPO_SLUG} .git
4+ sudo git config --global user.email " ${GIT_EMAIL} "
5+ sudo git config --global user.name " ${GIT_NAME} "
6+ sudo git config --global push.default simple
7+ sudo git remote add origin https://${GH_TOKEN} @github.com/${TRAVIS_REPO_SLUG} .git
88# export GIT_TAG=V2.$YEAR-$MONTH.$TRAVIS_BUILD_NUMBER
99export GIT_TAG=v1.0.$TRAVIS_BUILD_NUMBER
1010git fetch --tags
1111msg=" Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER "
1212if git tag $GIT_TAG -a -m " $msg " 2> /dev/null; then
13- git tag $GIT_TAG -a -m " Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER "
14- git push origin master && git push origin master --tags
13+ sudo git tag $GIT_TAG -a -m " Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER "
14+ sudo git push origin master && git push origin master --tags
1515ls -aR
1616else echo Tag already exists! ; fi
1717
You can’t perform that action at this time.
0 commit comments