2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-25 19:30:08 +01:00
xash3d-fwgs/travis-deploy.sh
2016-11-25 11:01:08 +06:00

18 lines
585 B
Bash

#!/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
exit 0