-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.09 KB
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy
on:
push:
branches:
- main
jobs:
android:
name: Deploy Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: '3.13.0'
- run: flutter build apk
- uses: w9jds/firebase-action@master
with:
args: |
appdistribution:distribute \
build/app/outputs/apk/release/app-release.apk \
--app ${{ secrets.FIREBASE_ANDROID_APP_ID }}
env:
GCP_SA_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
web:
name: Deploy Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: stable
flutter-version: '3.13.0'
- run: flutter config --enable-web
- run: flutter build web
- uses: w9jds/firebase-action@master
with:
args: deploy --project ${{ secrets.FIREBASE_PROJECT_ID }}
env:
GCP_SA_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}