mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
Add github deploy script
This commit is contained in:
@@ -47,3 +47,4 @@ script:
|
||||
|
||||
after_script:
|
||||
- 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
|
||||
Reference in New Issue
Block a user