The firebase target publishes your package artifacts to the firebase.
Firebase CLI
Run the following command
npm install -g firebase-tools
requires some environment variables set up to run correctly.
# Get token https://firebase.google.com/docs/cli?authuser=0#cli-ci-systemsfirebase login:ci export FIREBASE_TOKEN="your firebase login:ci Token"
Run:
flutter_distributor publish \ --path dist/1.0.0+1/hello_world-1.0.0+1-android.apk \ --targets firebase \ --firebase-app '<app ID>' \ --firebase-testers testers@gmail.com \ --firebase-groups flutter_distributor \ --firebase-release-notes 'release v1.0.0' /
distribute_options.yaml
variables: FIREBASE_TOKEN: your token, See[https://firebase.google.com/docs/cli?authuser=0#cli-ci-systems]output: dist/releases: - name: dev jobs: - name: release-dev-android package: platform: android target: apk build_args: target-platform: android-arm # Publish to firebase publish: target: firebase args: app: your app ID testers: testers@gmail.com groups: flutter_distributor release-notes: release v1.0.0
flutter_distributor release --name dev