fix s3 prefix path

This commit is contained in:
Nabeel Shahzad
2018-01-17 00:32:32 -05:00
parent 8e646fb78c
commit d967d33598
2 changed files with 3 additions and 2 deletions

View File

@@ -26,7 +26,6 @@ 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
@@ -44,6 +43,7 @@ jobs:
- stage: deploy
script: skip
before_deploy:
- curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash
- openssl aes-256-cbc -K $encrypted_6ae8173eef05_key -iv $encrypted_6ae8173eef05_iv -in .travis/deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa

View File

@@ -54,7 +54,8 @@ 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
cd /tmp/
artifacts upload $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