Skip to content

Commit 1fc4ad8

Browse files
add sudo commands to deploy.sh
1 parent d3f3954 commit 1fc4ad8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

travis-ci/deploy.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
#!/bin/bash
22
YEAR=$(date +"%Y")
33
MONTH=$(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
99
export GIT_TAG=v1.0.$TRAVIS_BUILD_NUMBER
1010
git fetch --tags
1111
msg="Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
1212
if 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
1515
ls -aR
1616
else echo Tag already exists!; fi
1717

0 commit comments

Comments
 (0)