-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.15 KB
/
widgetbook.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
on:
pull_request:
types: [opened, synchronize]
branches:
- "release/**"
- "main"
push:
branches:
- "release/**"
- "main"
env:
flutter_version: "3.7.9"
flutter_channel: "stable"
jobs:
deploy_widgetbook:
runs-on: ubuntu-latest
env:
WIDGETBOOK_API_KEY: ${{ secrets.WIDGETBOOK_API_KEY }}
steps:
- name: Fetch code from repository
uses: actions/checkout@v2
- name: Setup the Flutter environment
uses: subosito/flutter-action@v2
with:
channel: ${{ env.flutter_channel }}
flutter-version: ${{ env.flutter_version }}
name: collaction_book_cicd
- name: Setup FVM
run: |
dart pub global activate fvm
fvm install
- name: Setup Melos & Widgetbook CLI
run: |
dart pub global activate melos
dart pub global activate widgetbook_cli 3.0.0-beta.26
- name: Get Flutter dependencies
run: melos get:widgetbook
- name: Build generated code
run: melos build:widgetbook
- name: Publish to Widgetbook
run: melos publish:widgetbook $WIDGETBOOK_API_KEY