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 properties
release-trackandrelease-statusfor Android
- Fix build.sh input checks when uploading to Play Store
- Now
gemfile.lockwill be checked and if it contains aBUNDLED WITHsection it will install and use that specific version of bundler. - The default value of
bundler-versionis now set to2.3so that the fallback value is compatible with fastlane plugins.
- Bundler is now installed with
setup-rubyaction.
- Optional Ruby version: using the
ruby-versionproperty you can specify Ruby version you wish to use. If missing latest Ruby version available will be used. - Optional bundler version: using the
bundler-versionproperty you can specify bundler version you wish to use. If missing latest bundler version will be used. - Optional fastlane env parameter: using
fastlane-envparameter you can specify wich env fastlane should load while executing the lane.
- 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-nameand thekeystore-content,keystore-passwordandkeystore-alias - Optional upload to the "internal" track of the Google Play Store: set the
upload-to-play-storeproperty totrueand be sure to add thejson-key-dataproperty 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".
Ruby version to be used. Default "head".
Bundler version to be used. Default "2.3".
Fastlane version to be used. If not specified, the default value will be used.
Specify the env that fastlane should load.
Release track to target. Default "internal".
Status of the uploaded release. Default "draft".
- uses: sparkfabrik/android-build-action@v1.5.0
with:
project-path: android
output-path: my-app.apk
browserstack-upload: true
browserstack-username: ${{ secrets.BROWSERSTACK_USERNAME }}
browserstack-access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
ruby-version: "2.7.5"
bundler-version: "2.3.26"
fastlane-env: "debug"If you have any other inputs you'd like to add, feel free to create PR.