Skip to content

Build a signed, release-ready APK with GitHub Actions

License

Notifications You must be signed in to change notification settings

WaterLemons2k/apk-action

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

APK action

Build a signed, release-ready APK with GitHub Actions

Based on victorbnl/build-signed-apk

Usage

- uses: WaterLemons2k/apk-action@v1
  with:
    # Contents of the keystore file (.jks), base64 encoded
    keystore: ${{ secrets.KEYSTORE }}
    # Password of the keystore
    keystore-password: ${{ secrets.KEYSTORE_PASSWORD }}
    # Alias of the key
    key-alias: ${{ secrets.KEY_ALIAS }}
    # Password of the key
    key-password: ${{ secrets.KEY_PASSWORD }}

    # Optioanl
    #
    # The Java version to set up
    # Default: see `src/java-version.js`
    java-version: ''
    # The arguments passed to Gradle
    # Default: '--no-daemon'
    gradle-args: ''

The APK

Default location of the APK: app/build/outputs/apk/release/app-release.apk.

Follow-up

Now you can do whatever you want with the APK, such as release it:

- uses: softprops/action-gh-release@v2
  with:
    files: app/build/outputs/apk/release/*.apk

or upload it as an artifact:

- uses: actions/upload-artifact@v4
  with:
    name: APK
    path: app/build/outputs/apk/release/*.apk

Enjoy it!