From 8e646fb78c5f85b8ffc86df2481c8c7a795d3e79 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Wed, 17 Jan 2018 00:23:50 -0500 Subject: [PATCH] Try uploading to s3 --- .travis.yml | 4 +--- .travis/deploy_script.sh | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 57ed96e8..19de2c74 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,3 @@ -# -# - language: php php: - '7.0' @@ -29,6 +26,7 @@ addons: # - mysql -e 'CREATE DATABASE IF NOT EXISTS phpvms;' before_script: + - curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash - cp .travis/env.travis.php env.php - composer install --no-interaction --verbose diff --git a/.travis/deploy_script.sh b/.travis/deploy_script.sh index bc3c2011..ffecaca4 100755 --- a/.travis/deploy_script.sh +++ b/.travis/deploy_script.sh @@ -54,6 +54,7 @@ if [ "$TRAVIS" = "true" ]; then echo "running rsync" rsync -ahP --delete-after /tmp/$TAR_NAME downloads@phpvms.net:/var/www/phpvms/downloads/ + artifacts upload /tmp/$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