Skip to content

Commit

Permalink
Update deploy-main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndresRamirez authored Dec 1, 2024
1 parent 900f037 commit a9a0382
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: CI/CD - Crudzaso

on:
push:
branches: [ main ]

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- 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:
Expand All @@ -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

0 comments on commit a9a0382

Please sign in to comment.