Skip to content

Commit

Permalink
Send APK to Firebase once the build completes
Browse files Browse the repository at this point in the history
  • Loading branch information
MillerAdulu committed Jul 31, 2024
1 parent 1cd4eac commit 8f36ba8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ jobs:
- name: ⚙️ Build APK
run: flutter build apk --flavor production --target lib/main_production.dart

- name: 📦 Archive
uses: actions/upload-artifact@v4
- name: 📦 Upload artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
name: production-apk
path: build/app/outputs/flutter-apk/app-production-release.apk
appId: ${{secrets.FIREBASE_APP_ID}}
serviceCredentialsFileContent: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
groups: internal-production
file: build/app/outputs/flutter-apk/app-production-release.apk

# - name: ⚙️ Setup Ruby
# uses: ruby/setup-ruby@v1
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,11 @@ jobs:
- name: ⚙️ Build APK
run: flutter build apk --flavor production --target lib/main_production.dart

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

0 comments on commit 8f36ba8

Please sign in to comment.