mirror of
https://github.com/we-promise/sure.git
synced 2026-05-12 23:25:00 +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:
|
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
|
||||||
|
|||||||
1
.github/workflows/mobile-release.yml
vendored
1
.github/workflows/mobile-release.yml
vendored
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user