Add github deploy script
This commit is contained in:
parent
a9bb69cd32
commit
a38603ebe1
2 changed files with 18 additions and 0 deletions
|
@ -47,3 +47,4 @@ script:
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
- sh travis-upload.sh *.apk
|
- sh travis-upload.sh *.apk
|
||||||
|
- sh travis-deploy.sh *.apk
|
||||||
|
|
17
travis-deploy.sh
Normal file
17
travis-deploy.sh
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/sh
|
||||||
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||||
|
echo "Travis should not deploy from pull requests"
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
mkdir xash3d-travis
|
||||||
|
cp -a $* xash3d-travis/
|
||||||
|
cd xash3d-travis
|
||||||
|
git init
|
||||||
|
git config user.name mittorn
|
||||||
|
git config user.email mittorn@sibmail.com
|
||||||
|
git remote add travis-deploy-public https://mittorn:${GH_TOKEN}@github.com/mittorn/xash3d-travis.git
|
||||||
|
git add .
|
||||||
|
git commit -m "Laterst travis android optimized deploy $TRAVIS_COMMIT"
|
||||||
|
git checkout -b android-optimized-$TRAVIS_BRANCH
|
||||||
|
git push --force travis-deploy-public android-optimized-$TRAVIS_BRANCH
|
||||||
|
fi
|
Loading…
Add table
Reference in a new issue