diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.yml index 198a2ea41..15bcfbe08 100644 --- a/.github/workflows/flutter-build.yml +++ b/.github/workflows/flutter-build.yml @@ -2,6 +2,10 @@ name: Flutter Mobile Build on: 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: permissions: @@ -12,6 +16,8 @@ jobs: name: Build Android APK runs-on: ubuntu-latest timeout-minutes: 30 + outputs: + has_app_release_aab: ${{ steps.check_secrets.outputs.has_keystore }} steps: - name: Checkout code diff --git a/.github/workflows/mobile-release.yml b/.github/workflows/mobile-release.yml index 13e81137a..b07959fbb 100644 --- a/.github/workflows/mobile-release.yml +++ b/.github/workflows/mobile-release.yml @@ -73,6 +73,7 @@ jobs: play-store: name: Upload Android to Google Play + if: ${{ needs.build.outputs.has_app_release_aab == 'true' }} needs: [build, prepare_release] uses: ./.github/workflows/google-play-upload.yml with: