From bfb1d55efbb7ec697c03863ec4b60f6ca1504006 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Wed, 17 Jan 2018 00:48:09 -0500 Subject: [PATCH] set default path --- .travis/deploy_script.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.travis/deploy_script.sh b/.travis/deploy_script.sh index ab174b40..d020e196 100755 --- a/.travis/deploy_script.sh +++ b/.travis/deploy_script.sh @@ -11,15 +11,11 @@ if [ "$TRAVIS" = "true" ]; then TAR_NAME="phpvms-7.0.0-$PKG_NAME.tar.gz" echo "Writing $TAR_NAME" - #echo "running build" - #npm run prod - # delete all superfluous files echo "cleaning files" cd $TRAVIS_BUILD_DIR - #php artisan version:show --format compact --suppress-app-name > VERSION php artisan phpvms:version --write > VERSION VERSION=`cat VERSION` echo "Version: $VERSION" @@ -50,13 +46,12 @@ if [ "$TRAVIS" = "true" ]; then echo "creating tarball" cd /tmp tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms - #git archive --format=tar.gz --prefix=phpvms/ --output=test.tar.gz HEAD echo "running rsync" rsync -ahP --delete-after /tmp/$TAR_NAME downloads@phpvms.net:/var/www/phpvms/downloads/ + cd /tmp/ - artifacts upload $TAR_NAME + artifacts upload --target-paths "/" $TAR_NAME curl -X POST --data "{\"content\": \"A new build is available at http://phpvms.net/downloads/$TAR_NAME ($VERSION)\"}" -H "Content-Type: application/json" $DISCORD_WEBHOOK_URL - fi