-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added workflow to distribute android app
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |