-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (32 loc) · 1.01 KB
/
docs.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
name: Documentation
on:
workflow_dispatch:
push:
paths:
- docs
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: subosito/flutter-action@v2
with:
channel: beta
cache: true
- name: 🚧 Install dependencies
run: pip install mkdocs-material
- name: 👷 Build site (docs)
run: mkdocs build -d docs-dist
- name: 👷 Build site (playground)
working-directory: playground
run: |
flutter build web --wasm --base-href "/beize/playground/"
mv build/web ../docs-dist/playground
- name: 🚀 Deploy
uses: zyrouge/gh-push-action@v1.0.5
with:
directory: docs-dist
branch: gh-pages