try using git archive vs tar

This commit is contained in:
Nabeel Shahzad 2017-12-17 12:04:20 -06:00
parent 8147d76403
commit 94599fd946

View File

@ -23,7 +23,8 @@ if [ "$TRAVIS" = "true" ]; then
echo "creating tarball" echo "creating tarball"
cd /tmp cd /tmp
tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms phpvms/.* #tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms phpvms/.*
git archive --format=tar --prefix=phpvms/ --output=$TAR_NAME HEAD $TRAVIS_BUILD_DIR/phpvms/
echo "running rsync" echo "running rsync"
rsync -ahP --delete-after /tmp/$TAR_NAME downloads@phpvms.net:/var/www/downloads/ rsync -ahP --delete-after /tmp/$TAR_NAME downloads@phpvms.net:/var/www/downloads/