Skip to content

Merge pull request #15 from B3-3iL-DLW/feat/create-data-layer-and-rep… #2

Merge pull request #15 from B3-3iL-DLW/feat/create-data-layer-and-rep…

Merge pull request #15 from B3-3iL-DLW/feat/create-data-layer-and-rep… #2

Workflow file for this run

name: SSH Upload and Composer Install on DEV
on:
push:
branches:
- dev
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Upload PHP code
run: scp -o StrictHostKeyChecking=no -r * ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_HOST }}:/home/julesartd/www/api-dev-edt-3il
- name: SSH into server and run composer install
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /home/julesartd/www/api-dev-edt-3il/backend
composer2 install