Deploy only if nuxt builds
This commit is contained in:
parent
f0750f22ee
commit
e1e3fdee9c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue