-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (39 loc) · 1.15 KB
/
deploy_web.yml
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
43
44
45
46
47
48
49
50
name: Web Deployment
on:
push:
paths:
- "lib/**"
- "pubspec.yaml"
- "pubspec.lock"
- ".github/workflows/deploy_web.yml"
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
flutter-version: 2.8.1
channel: stable
cache: true
- name: Install Dependencies
run: flutter packages get
- name: Format
run: flutter format --set-exit-if-changed lib test
- name: Analyze
run: flutter analyze lib test
- name: Run tests
run: flutter test --no-pub --coverage --test-randomize-ordering-seed random
- name: Build web version
run: flutter build web
- name: Deploy on Firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
projectId: apparence-flutter-puzzle
target: apparence-flutter-puzzle
expires: 30d
channelId: live