Use git credentials
This commit is contained in:
parent
b8b44ff3e3
commit
c25ebc4adc
2 changed files with 7 additions and 4 deletions
|
@ -19,7 +19,7 @@ notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- wget http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin
|
- wget http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin > /dev/null 2>/dev/null
|
||||||
- chmod +x android-ndk-r10e-linux-x86_64.bin && ./android-ndk-r10e-linux-x86_64.bin > /dev/null
|
- chmod +x android-ndk-r10e-linux-x86_64.bin && ./android-ndk-r10e-linux-x86_64.bin > /dev/null
|
||||||
- mv android-ndk-r10e android-ndk
|
- mv android-ndk-r10e android-ndk
|
||||||
- export PATH=`pwd`/android-ndk:`pwd`/android-sdk-linux/tools:`pwd`/android-sdk-linux/platform-tools:$PATH
|
- export PATH=`pwd`/android-ndk:`pwd`/android-sdk-linux/tools:`pwd`/android-sdk-linux/platform-tools:$PATH
|
||||||
|
|
|
@ -11,7 +11,10 @@ else
|
||||||
git init
|
git init
|
||||||
git config user.name FWGS-deployer
|
git config user.name FWGS-deployer
|
||||||
git config user.email FWGS-deployer@users.noreply.github.com
|
git config user.email FWGS-deployer@users.noreply.github.com
|
||||||
git remote add travis-deploy-public https://FWGS-deployer:${GH_TOKEN}@github.com/FWGS/xash3d-deploy.git
|
git config credential.helper "store --file=.git/credentials"
|
||||||
|
git config credential.https://github.com.com.username FWGS-deployer
|
||||||
|
echo "https://FWGS-deployer${GH_TOKEN}@github.com" > .git/credentials
|
||||||
|
git remote add travis-deploy-public https://github.com/FWGS/xash3d-deploy.git
|
||||||
echo \# $TRAVIS_BRANCH branch autobuilds from $SOURCE_NAME >> README.md
|
echo \# $TRAVIS_BRANCH branch autobuilds from $SOURCE_NAME >> README.md
|
||||||
echo >> README.md
|
echo >> README.md
|
||||||
echo Short changelog: >> README.md
|
echo Short changelog: >> README.md
|
||||||
|
@ -31,8 +34,8 @@ else
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Laterst travis deploy $TRAVIS_COMMIT"
|
git commit -m "Laterst travis deploy $TRAVIS_COMMIT"
|
||||||
git checkout -b $SOURCE_NAME-$TRAVIS_BRANCH
|
git checkout -b $SOURCE_NAME-$TRAVIS_BRANCH
|
||||||
git push -q --force travis-deploy-public $SOURCE_NAME-$TRAVIS_BRANCH > /dev/null 2>/dev/null
|
git push -q --force travis-deploy-public $SOURCE_NAME-$TRAVIS_BRANCH
|
||||||
git checkout -b $SOURCE_NAME-latest
|
git checkout -b $SOURCE_NAME-latest
|
||||||
git push -q --force travis-deploy-public $SOURCE_NAME-latest > /dev/null 2>/dev/null
|
git push -q --force travis-deploy-public $SOURCE_NAME-latest
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue