Deploy only if nuxt builds

This commit is contained in:
Julien Nahum 2024-01-16 18:37:29 +01:00
parent f0750f22ee
commit e1e3fdee9c
1 changed files with 2 additions and 7 deletions

View File

@ -153,14 +153,9 @@ jobs:
run: npm run build run: npm run build
production-deploy: production-deploy:
needs: [ tests ] needs: [ tests, build-nuxt-app ]
if: success() && github.ref == 'refs/heads/main' && github.event_name == 'push' if: success() && github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ 8.2 ]
name: Triggers Deployment (Vapor & Amplify) name: Triggers Deployment (Vapor & Amplify)
steps: steps:
@ -189,7 +184,7 @@ jobs:
- name: Setup PHP - name: Setup PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
with: with:
php-version: ${{ matrix.php }} php-version: 8.2
extensions: dom, curl, mbstring, pdo, sqlite, pdo_sqlite extensions: dom, curl, mbstring, pdo, sqlite, pdo_sqlite
tools: composer:v2 tools: composer:v2
coverage: none coverage: none