Skip to content

Merge pull request #27 from ThomasLdev/feat/21-drive-sdk #18

Merge pull request #27 from ThomasLdev/feat/21-drive-sdk

Merge pull request #27 from ThomasLdev/feat/21-drive-sdk #18

Workflow file for this run

name: Instabot Deployment
on:
push:
branches:
- main
release:
types: [ published ]
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: Deploy to Server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
password: ${{ secrets.REMOTE_PASSWORD }}
port: 22
script: |
cd ${{ secrets.REMOTE_TARGET }}
git pull origin main
rm -rf /vendor
rm -rf /node_modules
php ~/composer.phar install --no-dev --optimize-autoloader --no-interaction --no-progress --prefer-dist
php bin/console doctrine:migrations:migrate --no-interaction
npm install
npm run build
php bin/console cache:clear --env=prod