Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate Firebase App Distribution with Github Actions #227

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/app_distribution.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build & upload to Firebase App Distribution

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- uses: subosito/flutter-action@v1
with:
channel: 'stable'

- run: flutter doctor

- run: dart pub global activate flutterfire_cli

- name: "Melos Install"
run: dart pub global activate melos

- name: "Melos bs"
run: melos bootstrap

- name: "Build apk"
run: melos build-apk

- name: "Build appbundle"
run: melos build-appbundle

- run: ls app/build/app/outputs/flutter-apk

- name: Upload artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{secrets.APP_ID}}
serviceCredentialsFileContent: ${{secrets.CREDENTIAL_FILE_CONTENT}}
groups: my_quran_testers
file: app/build/app/outputs/flutter-apk/app-release.apk
Loading