Skip to content

This action will help you convert your aab to signed apk file.

License

Notifications You must be signed in to change notification settings

mukeshsolanki/bundletool-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

BundleTool Action

Codacy Badge tag badge license badge

Thumbnail

This action will help you convert your aab to signed apk file.

Inputs

aabFile

Required: The relative path in your project where your Android bundle file will be located

base64Keystore

Required: The base64 encoded signing key used to sign your apk

This action will directly decode this input to a file to sign your release with. You can prepare your key by running this command on linux systems.

openssl base64 < some_signing_key.jks | tr -d '\n' | tee some_signing_key.jks.base64.txt

Then copy the contents of the .txt file to your GH secrets

keystoreAlias

Required: The alias of your signing key

keystorePassword

Required: The password to your signing keystore

keyPassword

Required: The private key password for your signing keystore

bundletoolVersion

Optional: The version of bundletool to use. Defaults to latest

Outputs

Output variables are set both locally and in environment variables.

apkPath

The path to the single release apk file that have been signed with this action.

Example usage

Single APK

The output variable signedReleaseFile can be used in a release action.

steps:
  - name: Convert aab to apk
    id: convert_aab
    uses: mukeshsolanki/[email protected]
    with:
      aabFile: app/build/outputs/bundle/release/app-release.aab
      base64Keystore: ${{ secrets.BASE64_KEY }}
      keystorePassword: ${{ secrets.PASSWORD }}
      keystoreAlias: ${{ secrets.ALIAS }}
      keyPassword: ${{ secrets.PASSWORD }}
      bundletoolVersion: '1.9.0'

  - uses: actions/upload-artifact@v3
    with:
      name: release-apk
      path: ${{ steps.convert_aab.outputs.apkPath }}