Skip to content

Build Android project, export .apk, optional upload to BrowserStack App Live.

License

Notifications You must be signed in to change notification settings

anime-vsub/android-build-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

Build Android App

This action build Android project, export .apk file as GitHub artifact, with optional automatic upload to BrowserStack AppLive.

Tested with Ionic, React Native and native android projects.

New in 1.2.0

  • Optional build format: you can build an unsigned APK (build-type: assemble) or a signed AAB (build-type: bundle). In case of a signed AAB you will also need to provide the package-name and the keystore-content, keystore-password and keystore-alias
  • Optional upload to the "internal" track of the Google Play Store: set the upload-to-play-store property to true and be sure to add the json-key-data property as a one-line JSON content of your Key file.

Inputs

project-path

Required android folder (where gradlew is)

output-path

Output path of apk. Default "output.apk".

gradle-task

Name of the gradle task to run. Default "assembleDebug".

Example usage

- uses: sparkfabrik/[email protected]
  with:
    project-path: android
    output-path: my-app.apk
    browserstack-upload: true
    browserstack-username: ${{ secrets.BROWSERSTACK_USERNAME }}
    browserstack-access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}

Contributions Welcome!

If you have any other inputs you'd like to add, feel free to create PR. Remember to run yarn install and yarn bundle if you make changes to the index.js.

About

Build Android project, export .apk, optional upload to BrowserStack App Live.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 53.2%
  • JavaScript 37.7%
  • Shell 9.1%