https://github.com/jr20xx/apk-builder-action
Custom GitHub Action to ease the process of building a debug or release APK using Gradle
https://github.com/jr20xx/apk-builder-action
github-actions github-marketplace yml
Last synced: 2 months ago
JSON representation
Custom GitHub Action to ease the process of building a debug or release APK using Gradle
- Host: GitHub
- URL: https://github.com/jr20xx/apk-builder-action
- Owner: jr20xx
- License: gpl-3.0
- Created: 2024-12-03T05:29:54.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-03T05:58:03.000Z (6 months ago)
- Last Synced: 2024-12-03T06:28:02.738Z (6 months ago)
- Topics: github-actions, github-marketplace, yml
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> [!WARNING]
>
> This is a work in progress at the moment and it is still under experimentation. Use it at your own risk and consideration.
>This is a GitHub Action created with the purpose of easing the process of building an APK using Gradle directly from GitHub. The usage is really simple and here are the parameters you can use when using this action:
| Parameter | Description | Default value |
| --- | --- | --- |
| java-version | The JDK version to use to perform all operations | 17 |
| java-distribution | The name of the JDK distribution to use | temurin |
| encoded-keystore | The Base64 encoded keystore file used to sign the release APK | - |
| keystore-password | The password of the keystore used to sign the release APK | - |
| alias | The keystore's alias used to sign the release APK | - |
| alias-password | The password of the keystore's alias used to sign the release APK | - |This action will produce either a debug or a release APK depending on when the `encoded-keystore` parameter is defined. **If** this parameter **is defined**, **a release** APK will be built; **otherwise** a **debug version** will be built.
After building the APK, you are free to do whatever you want to do with it. For example, if you defined the `encoded-keystore`, you can upload the release APK by adding the following lines in your workflow file:
```yml
- name: Upload release app
uses: actions/upload-artifact@v4
with:
name: 'app-release'
path: app/build/outputs/apk/release/*.apk
if-no-files-found: error
```In case you didn't define the `encoded-keystore` param, then you can upload the debug version as it follows:
```yml
- name: Upload debug app
uses: actions/upload-artifact@v4
with:
name: 'app-debug'
path: app/build/outputs/apk/debug/*.apk
if-no-files-found: error
```