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.
- 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 thepackage-name
and thekeystore-content
,keystore-password
andkeystore-alias
- Optional upload to the "internal" track of the Google Play Store: set the
upload-to-play-store
property totrue
and be sure to add thejson-key-data
property as a one-line JSON content of your Key file.
Required android folder (where gradlew
is)
Output path of apk. Default "output.apk"
.
Name of the gradle task to run. Default "assembleDebug"
.
- 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 }}
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.