-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (32 loc) · 849 Bytes
/
main.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
name: github pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Setup Flutter
uses: subosito/flutter-action@v1
with:
channel: 'master'
- name: Install
run: |
flutter config --enable-web
flutter pub get
- name: Build Example
run: |
cd example &&
flutter build web --no-tree-shake-icons --base-href=/flutter_json_widgets/ &&
cd ..
- name: Setup Dart
uses: dart-lang/setup-dart@v1.3
- name: Build Docs
run: dart doc -o example/build/web/docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./example/build/web