From a9a038293017dfc73d5a5158cf1a0551ca287a3d Mon Sep 17 00:00:00 2001 From: Diego Andres Ramirez Mejia <157324739+DiegoAndresRamirez@users.noreply.github.com> Date: Sat, 30 Nov 2024 19:25:26 -0500 Subject: [PATCH] Update deploy-main.yml --- .github/workflows/deploy-main.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/deploy-main.yml b/.github/workflows/deploy-main.yml index 189691c..3f4e50f 100644 --- a/.github/workflows/deploy-main.yml +++ b/.github/workflows/deploy-main.yml @@ -1,9 +1,7 @@ name: CI/CD - Crudzaso - on: push: branches: [ main ] - jobs: build-and-deploy: runs-on: ubuntu-latest @@ -11,7 +9,6 @@ jobs: - name: Fix git ownership run: | git config --global --add safe.directory "${{ secrets.PATH }}" - - name: Executing remote SSH commands using password uses: appleboy/ssh-action@v0.1.6 with: @@ -26,5 +23,5 @@ jobs: echo '${{ secrets.ENV_FILE }}' > .env composer install --no-dev --optimize-autoloader composer dump-autoload - php artisan migrate:fresh --seed || echo "Database migration failed, skipping." + php artisan migrate:fresh --seed || (echo "Migrations failed, but continuing deployment" && true) php artisan optimize:clear