Build Android

flightstack/build-android@1.0.0 Step Verified

Build a signed Android AAB (and APK) using a Play upload key.

Add it to a pipeline

jobs:
  - id: build-android
    uses: flightstack/build-android@1.0.0
    inputs:
      keystoreCredential: <credentialRef>

Or drag it onto the canvas from the step palette in the visual editor. Pin an exact version for production pipelines.

Inputs

keystoreCredential credentialRef required
Upload keystore (keystore file + alias + passwords).
firebaseConfig credentialRef
Firebase config to place before building. Leave empty to use the repository's only Firebase config, if it has one.
buildNumber integer
Override the build number (default — read from pubspec.yaml).
flavor selection
Build flavor declared in build.gradle (e.g. production, staging).
target string
Dart entry file (passed as --target=). Leave empty for lib/main.dart.
workingDirectory string default .
Project sub-directory inside the repo.
buildApk boolean default true
Whether to also produce a release APK alongside the AAB.

Outputs

bundlePathartifact
Path to the signed .aab.
apkPathartifact
Path to the signed .apk (empty if buildApk was false).