fix s3 prefix path
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user