Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[workflow] gate ensu aab build on playstore key

Prateek Sunala1f2c41e3f4e
diff --git a/.github/workflows/ensu-release.yml b/.github/workflows/ensu-release.yml
index a4c7d858cb..065d8b3134 100644
--- a/.github/workflows/ensu-release.yml
+++ b/.github/workflows/ensu-release.yml
@@ -179,19 +179,28 @@ jobs:
keyPassword=${{ secrets.SIGNING_KEY_PASSWORD_ENSU }}
EOF
- - name: Build signed release APK and AAB
+ - name: Build signed release APK
if: env.HAS_ANDROID_SIGNING == 'true'
- run: ./gradlew :app-ui:assembleRelease :app-ui:bundleRelease
+ run: ./gradlew :app-ui:assembleRelease
+
+ - name: Build signed release AAB (PlayStore)
+ if: env.HAS_ANDROID_SIGNING == 'true' && env.HAS_PLAYSTORE_SERVICE_ACCOUNT == 'true'
+ run: ./gradlew :app-ui:bundleRelease
- name: Build unsigned debug APK (fallback)
if: env.HAS_ANDROID_SIGNING != 'true'
run: ./gradlew :app-ui:assembleDebug
- - name: Collect Android artifacts (signed)
+ - name: Collect Android artifacts (signed APK)
if: env.HAS_ANDROID_SIGNING == 'true'
run: |
mkdir -p artifacts
cp app-ui/build/outputs/apk/release/app-ui-release.apk artifacts/ensu-${{ github.ref_name }}.apk
+
+ - name: Collect Android artifacts (signed AAB)
+ if: env.HAS_ANDROID_SIGNING == 'true' && env.HAS_PLAYSTORE_SERVICE_ACCOUNT == 'true'
+ run: |
+ mkdir -p artifacts
cp app-ui/build/outputs/bundle/release/app-ui-release.aab artifacts/ensu-${{ github.ref_name }}.aab
- name: Collect Android artifacts (unsigned fallback)