Skip to content

DEPLOY

DEPLOY #16

Workflow file for this run

name: DEPLOY
on:
workflow_run:
workflows: [ "CI-BUILD-TEST" ]
types:
- completed
jobs:
deploy:
if: github.ref == 'refs/heads/master' && github.event.workflow_run.conclusion == 'success'
runs-on: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v1
- name: Push to server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
script: |
cd ${{ secrets.PROJECT_PATH }}
git pull
php8.1 /usr/local/bin/composer install
php8.1 bin/console doctrine:migrations:migrate --no-interaction
npm ci
npm run build