travis deploy script

This commit is contained in:
Nabeel Shahzad
2017-12-13 16:04:23 -06:00
parent b99872e8a8
commit eb11d62d2a
2 changed files with 13 additions and 11 deletions

View File

@@ -39,14 +39,4 @@ deploy:
skip_cleanup: true
on:
branch: master
script: - |
if test "$TRAVIS_TAG"
then
PKG_NAME=$TRAVIS_TAG.tar.gz
else
PKG_NAME=nightly.tar.gz
fi
rm -rf .git deploy_rsa.enc .idea phpvms.iml
tar -czvf $PKG_NAME.tar.gz -C $TRAVIS_BUILD_DIR .
rsync -r --delete-after --quiet $PKG_NAME.tar.gz downloads@phpvms.net:/var/www/downloads/
script: make deploy-package