Skip to content

Commit

Permalink
Debug deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
odolbeau committed Dec 13, 2023
1 parent cb4107c commit 598ec97
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,33 @@ env:

jobs:
deploy:
name: Deploy latest version on ${{ env.TARGETED_ENVIRONMENT }}
name: "Deploy latest version on $TARGETED_ENVIRONMENT"
runs-on: ubuntu-20.04
environment: ${{ env.TARGETED_ENVIRONMENT }}
environment: "$TARGETED_ENVIRONMENT"
steps:
- name: Checkout
uses: actions/checkout@v4
- run: env

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, dom, filter, gd, iconv, json, mbstring, pdo
#- name: Checkout
#uses: actions/checkout@v4

- name: Download dependencies
uses: ramsey/composer-install@v2
with:
composer-options: "--optimize-autoloader"
#- name: Setup PHP
#uses: shivammathur/setup-php@v2
#with:
#php-version: 8.2
#extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, dom, filter, gd, iconv, json, mbstring, pdo

- name: Deploy files over SSH
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-avzr"
SOURCE: "/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}
EXCLUDE: "/migrations/, /var/, /.git/, /.github/, /tests/, /tools/"
#- name: Download dependencies
#uses: ramsey/composer-install@v2
#with:
#composer-options: "--optimize-autoloader"

#- name: Deploy files over SSH
#uses: easingthemes/ssh-deploy@main
#with:
#SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
#ARGS: "-avzr"
#SOURCE: "/"
#REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
#REMOTE_USER: ${{ secrets.REMOTE_USER }}
#TARGET: ${{ secrets.REMOTE_TARGET }}
#EXCLUDE: "/migrations/, /var/, /.git/, /.github/, /tests/, /tools/"

0 comments on commit 598ec97

Please sign in to comment.