From cfa46f1f7f80c05d0328e8ccc46aee26181f1ad0 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Thu, 14 Dec 2017 11:37:26 -0600 Subject: [PATCH] more fixes to packaging --- .travis/deploy_script.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.travis/deploy_script.sh b/.travis/deploy_script.sh index a8cae77f..85e2ec50 100755 --- a/.travis/deploy_script.sh +++ b/.travis/deploy_script.sh @@ -11,11 +11,17 @@ if [ "$TRAVIS" = "true" ]; then TAR_NAME="phpvms-7.0.0-$PKG_NAME.tar.gz" echo "Writing $TAR_NAME" - echo "creating tarball" - # delete all superfluous files and tar it up - rm -rf .git deploy_rsa.enc .idea phpvms.iml .travis .dpl + + # delete all superfluous files + echo "cleaning files" find . -type d -name ".git" | xargs rm -rf - tar -czf /tmp/$TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms + rm -rf .idea phpvms.iml .travis .dpl + rm -rf .phpstorm.meta.php _ide_helper.php + rm -rf .env .env.prod.example + mv .env.dev.example .env + + echo "creating tarball" + tar -czf /tmp/$TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms/. echo "running rsync" rsync -ahP --delete-after /tmp/$TAR_NAME downloads@phpvms.net:/var/www/downloads/