ci: fix Play Store workflow for AAB submission

- Switch from assembleReleaseMarket (APK) to bundleReleaseMarket (AAB)
  Google Play requires AAB for new app submissions since August 2021
- Add bundle and mapping artifact uploads to reusable build workflow
- Fix mapping file path: release → releaseMarket
- Remove debugSymbols (not included in build artifact)
- Remove userFraction (incompatible with draft status)
- Remove whatsnew-ku (Play Store does not support Kurdish locale)
- Add if-no-files-found: ignore to APK upload for bundle-only builds
This commit is contained in:
2026-02-24 08:11:05 +03:00
parent 7a1e7d8270
commit e13cb18576
3 changed files with 36 additions and 21 deletions
+17
View File
@@ -212,3 +212,20 @@ jobs:
with:
name: ${{ inputs.upload-name }}
path: app/build/outputs/apk/
if-no-files-found: ignore
- name: ➡️ Upload bundle artifacts
if: ${{ !startsWith(inputs.gradlew-command, 'false') }}
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.upload-name }}-bundle
path: app/build/outputs/bundle/
if-no-files-found: ignore
- name: ➡️ Upload mapping file
if: ${{ !startsWith(inputs.gradlew-command, 'false') }}
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.upload-name }}-mapping
path: app/build/outputs/mapping/
if-no-files-found: ignore
@@ -4,9 +4,9 @@ on:
workflow_dispatch:
inputs:
app_version:
description: 'Version of application'
description: 'Version of application (e.g. v1.0.0)'
required: true
default: v*.*.*
default: v1.0.0
branch:
description: 'From which branch the application will be built'
required: true
@@ -17,7 +17,7 @@ jobs:
uses: pezkuwichain/pezkuwi-wallet-android/.github/workflows/android_build.yml@main
with:
branch: ${{ github.event.inputs.branch }}
gradlew-command: assembleReleaseMarket
gradlew-command: bundleReleaseMarket
keystore-file-name: market_key.jks
secrets: inherit
@@ -32,25 +32,30 @@ jobs:
with:
envFilePath: .github/workflows/variables/android.env
- name: Download built artifact
- name: Download bundle artifact
uses: actions/download-artifact@v4
with:
name: apk
path: app
name: apk-bundle
path: app/bundle
- name: Download mapping artifact
uses: actions/download-artifact@v4
with:
name: apk-mapping
path: app/mapping
continue-on-error: true
- name: Rename artifacts
run: mv app/releaseMarket/app-releaseMarket.apk app/releaseMarket/pezkuwi-wallet-android-${{ github.event.inputs.app_version }}.apk
run: mv app/bundle/releaseMarket/app-releaseMarket.aab app/bundle/releaseMarket/pezkuwi-wallet-android-${{ github.event.inputs.app_version }}.aab
- name: Market publication
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
packageName: io.pezkuwichain.wallet
releaseFiles: app/releaseMarket/pezkuwi-wallet-android-${{ github.event.inputs.app_version }}.apk
track: production # One of production, beta, alpha, internalsharing, internal, or a custom track name (case sensitive)
status: draft # One of "completed", "inProgress", "halted", "draft"
releaseFiles: app/bundle/releaseMarket/pezkuwi-wallet-android-${{ github.event.inputs.app_version }}.aab
track: production
status: draft
inAppUpdatePriority: 2
userFraction: 1.0 # Percentage of users who should get the staged version of the app. Defaults to 1.0
whatsNewDirectory: distribution/whatsnew # The directory of localized "whats new" files to upload as the release notes. The files contained in the whatsNewDirectory MUST use the pattern whatsnew-<LOCALE> where LOCALE is using the BCP 47 format
mappingFile: app/build/outputs/mapping/release/mapping.txt # The mapping.txt file used to de-obfuscate your stack traces from crash reports
debugSymbols: app/intermediates/merged_native_libs/release/out/lib
whatsNewDirectory: distribution/whatsnew
mappingFile: app/mapping/releaseMarket/mapping.txt
-7
View File
@@ -1,7 +0,0 @@
Pezkuwi Wallet - Deriyê we yê ekosîstema blockchain a Pezkuwi.
- Şandin û wergirtina tokenên HEZ
- Staking bi riya nomination pool li ser Asset Hub
- Panela Pezkuwi ya ku rol û pûana pêbaweriyê nîşan dide
- Piştgiriya pir-zincîran ji bo ekosîstema Polkadot
- Birêvebirina hesabê ewledar bi erêkirina biyometrîk