Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mukeshsolanki/bundletool-action
This action will help you convert your aab to signed apk file.
https://github.com/mukeshsolanki/bundletool-action
actions ci github mobile
Last synced: 6 days ago
JSON representation
This action will help you convert your aab to signed apk file.
- Host: GitHub
- URL: https://github.com/mukeshsolanki/bundletool-action
- Owner: mukeshsolanki
- License: mit
- Created: 2022-03-17T07:15:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-20T06:36:44.000Z (over 1 year ago)
- Last Synced: 2024-05-02T05:23:05.734Z (7 months ago)
- Topics: actions, ci, github, mobile
- Language: JavaScript
- Homepage:
- Size: 47.9 KB
- Stars: 10
- Watchers: 3
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BundleTool Action
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/667085e10b6740fda8942b1a11e5b866)](https://www.codacy.com/gh/mukeshsolanki/bundletool-action/dashboard?utm_source=github.com&utm_medium=referral&utm_content=mukeshsolanki/bundletool-action&utm_campaign=Badge_Grade)
[![tag badge](https://img.shields.io/github/v/tag/mukeshsolanki/bundletool-action)](https://github.com/mukeshsolanki/bundletool-action/tags)
[![license badge](https://img.shields.io/github/license/mukeshsolanki/bundletool-action)](./LICENSE)![Thumbnail](thumbnails.jpeg)
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.
```bash
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.
```yaml
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 }}
```