-
Notifications
You must be signed in to change notification settings - Fork 15
51 lines (49 loc) · 1.46 KB
/
build.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
51
name: Build
on:
push:
paths:
- '**.dart'
- '**.yaml'
- '**.yml'
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- name: Install Melos
run: flutter pub global activate melos
- name: Setup Melos
run: melos bootstrap
- name: Get Dependencies
run: melos deps
- name: Build Example
run: |
cd packages/flutter_box_transform/example
flutter build web --release
- name: Deploy example
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BOX_TRANSFORM_EXAMPLE }}'
channelId: live
projectId: box-transform-example
target: example
- name: Build Playground
run: |
cd packages/flutter_box_transform/playground
flutter build web --release
- name: Deploy playground
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BOX_TRANSFORM_EXAMPLE }}'
channelId: live
projectId: box-transform-example
target: playground