Update php.yml

This commit is contained in:
Matteo Gheza 2021-04-20 15:10:57 +02:00 committed by GitHub
parent bb5034fa11
commit 83c87df917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -186,7 +186,7 @@ jobs:
run: |
ls
sudo wget -O deployment.phar https://github.com/dg/ftp-deployment/releases/download/v3.4.0/deployment.phar
echo '<?php $remotes = [ 'staging' => [ 'remote' => '${{ secrets.DEPLOY_URL }}', 'sentry_env' => 'staging' ] ]; ?>' > deployment_remotes.php
echo '<?php $remotes = [ "staging" => [ "remote" => "${{ secrets.DEPLOY_URL }}", "sentry_env" => "staging" ] ]; ?>' > deployment_remotes.php
cat deployment_remotes.php
ls
php deployment.phar deployment.php --section staging
@ -195,9 +195,15 @@ jobs:
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: php_log_${{ github.run_id }}
name: deploy_php_log_${{ github.run_id }}
path: /tmp/php.log
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: deploy_log_${{ github.run_id }}
path: deployment.log
production_deployment:
if: github.event.ref == 'refs/heads/production'
# needs: tests