Skip to content
check-circle

GitHub Action

Aab to Apk Github Action

v1.0.8 Latest version

Aab to Apk Github Action

check-circle

Aab to Apk Github Action

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

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Aab to Apk Github Action

uses: ethanneff/[email protected]

Learn more about this action in ethanneff/bundletool-action

Choose a version

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: ethanneff/[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 }}