I am trying to publish a multi-modular Android app using GitHub Actions Workflow to Playstore.
I was initially getting this signing error:
Run r0adkll/upload-google-play@v1
Creating a new Edit for this release
Validating track 'production'
Uploading app-release.aab
Error: The Android App Bundle was not signed. Please sign the bundle using jarsigner.
This prompted me to check if the aab file was signed correctly.
I added these 2 workflow steps to check if the aab file exists and also extract aab files.
- name: Check AAB Existence
run: ls -l app/build/outputs/bundle/release/
- name: Extract the contents of the AAB
run: unzip -l app/build/outputs/bundle/release/app-release.aab
This is the verification step on the workflow.
- name: Verify Signature
run: $ANDROID_SDK_ROOT/build-tools/34.0.0/apksigner verify --print-certs --verbose app/build/outputs/bundle/release/app-release.aab
From the above 2 steps I confirmed that the aab file does exist and the Android Manifest.xml file is also present.
However, this error persists even after Cleaning and Rebuilding my project.
Run $ANDROID_SDK_ROOT/build-tools/34.0.0/apksigner verify --print-certs --verbose app/build/outputs/bundle/release/app-release.aab
Error: Exception in thread "main" com.android.apksig.apk.ApkFormatException: Missing AndroidManifest.xml
at com.android.apksig.ApkSigner.getAndroidManifestFromApk(ApkSigner.java:970)
at com.android.apksig.ApkVerifier.getAndroidManifestFromApk(ApkVerifier.java:1225)
Here are the links to my workflow.yaml and app gradle.build.kts
Kindly help me narrow down what I may doing wrong.

I learned the hard way that
ApkSigneris primarily designed to work withAPK(Android Package Kit) files and not with.aab(Android App Bundle) files.To verify
.aabfiles, you can go for Bundletool which is a command-line tool provided by Google.However, what worked for me was first signing the
.aabwith this step:I then simply used
job.statusto verify the status:This was the result for success:
This was the result for a failed signing job:
You can review the entire workflow here.
Cheers.