Gate Play upload on AAB artifact availability

This commit is contained in:
Juan José Mata
2026-04-24 21:32:12 +02:00
parent 8fed5156fe
commit a03a67f4a2
2 changed files with 7 additions and 0 deletions

View File

@@ -2,6 +2,10 @@ name: Flutter Mobile Build
on: on:
workflow_call: workflow_call:
outputs:
has_app_release_aab:
description: "Whether a signed release AAB artifact was produced"
value: ${{ jobs.build-android.outputs.has_app_release_aab }}
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@@ -12,6 +16,8 @@ jobs:
name: Build Android APK name: Build Android APK
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30 timeout-minutes: 30
outputs:
has_app_release_aab: ${{ steps.check_secrets.outputs.has_keystore }}
steps: steps:
- name: Checkout code - name: Checkout code

View File

@@ -73,6 +73,7 @@ jobs:
play-store: play-store:
name: Upload Android to Google Play name: Upload Android to Google Play
if: ${{ needs.build.outputs.has_app_release_aab == 'true' }}
needs: [build, prepare_release] needs: [build, prepare_release]
uses: ./.github/workflows/google-play-upload.yml uses: ./.github/workflows/google-play-upload.yml
with: with: