feat: add redirect to admin/panel after send register organizer form #44
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: 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.SERVER_HOST }} | |
username: ${{ secrets.SERVER_USER }} | |
key: ${{ secrets.SERVER_SSH_KEY }} | |
script: | | |
cd "${{ secrets.PATH }}" | |
git pull origin main | |
git fetch | |
echo '${{ secrets.ENV_FILE }}' > .env | |
composer i | |
composer dump-autoload | |
php artisan migrate:fresh --seed | |
php artisan optimize:clear |