mirror of
https://github.com/we-promise/sure.git
synced 2026-05-07 04:44:08 +00:00
Gate Play upload on AAB artifact availability
This commit is contained in:
6
.github/workflows/flutter-build.yml
vendored
6
.github/workflows/flutter-build.yml
vendored
@@ -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
|
||||
|
||||
1
.github/workflows/mobile-release.yml
vendored
1
.github/workflows/mobile-release.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user