Skip to content

Commit 0fb51ff

Browse files
committed
feat: deploy to firebase
1 parent 58b6f88 commit 0fb51ff

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/build_android.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,20 @@ jobs:
2121
cache: true
2222
- name: Get dependencies
2323
run: flutter pub get
24-
- name: Build QA APK
24+
- name: Build APK
2525
run: flutter build apk --dart-define=POLA_API_KEY=${{ secrets.POLA_API_KEY }} --build-number=${{ github.run_number }}
2626
- name: Install Firebase CLI
27-
run: npm install -g firebase-tools
27+
run: npm install -g firebase-tools
28+
- name: Deploy to Firebase App Distribution
29+
env:
30+
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
31+
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
32+
run: |
33+
firebase appdistribution:distribute build/app/outputs/flutter-apk/app.apk \
34+
--app $FIREBASE_APP_ID \
35+
--token $FIREBASE_TOKEN \
36+
--groups "QA-Group" \
37+
--release-notes "Automatyczny build z GitHub Actions - branch: ${{ github.ref }} - commit: ${{ github.sha }}"
2838
- uses: actions/upload-artifact@v7
2939
with:
3040
name: app-qa-debug.apk

0 commit comments

Comments
 (0)