Deploy only if nuxt builds

This commit is contained in:
Julien Nahum 2024-01-16 18:37:29 +01:00
父節點 f0750f22ee
當前提交 e1e3fdee9c
共有 1 個文件被更改,包括 2 次插入7 次删除

查看文件

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