Skip to content

Merge pull request #78 from Crudzaso/develop #53

Merge pull request #78 from Crudzaso/develop

Merge pull request #78 from Crudzaso/develop #53

Workflow file for this run

name: CI/CD - Crudzaso
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Executing remote SSH commands using password
uses: appleboy/ssh-action@v0.1.6
with:
host: ${{ secrets.HOST_SERVER }}
username: ${{ secrets.USERNAME_SERVER }}
password: ${{ secrets.PASSWORD_SERVER }}
port: ${{ secrets.PORT_SERVER }}
script: |
cd "${{ secrets.PATH }}"
git pull origin main
git fetch
echo '${{ secrets.ENV_FILE }}' > .env
composer install
composer dump-autoload
php artisan migrate:fresh --seed
php artisan optimize:clear