Skip to content

Commit

Permalink
added workflow to distribute android app
Browse files Browse the repository at this point in the history
  • Loading branch information
aidaiym committed Aug 1, 2024
1 parent efd8cbf commit 938471a
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/app_distribution_android.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build & upload to Firebase Android 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

0 comments on commit 938471a

Please sign in to comment.