Merge pull request #33 from ThomasLdev/feat/32-task-system #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |