-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (38 loc) · 1.21 KB
/
demo.yaml
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: Deploy Flutter Web Demo and Docs
on:
workflow_run:
workflows: ["Generate MkDocs Documentation"]
types: [completed]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
- run: flutter config --enable-web
shell: bash
- run: flutter pub get
shell: bash
- run: flutter build web --release
shell: bash
- run: mkdir -p build/web/lib/simulator
shell: bash
- run: dart compile js lib/simulator/vehicle_event_worker.dart -o build/web/lib/simulator/vehicle_event_worker.js
shell: bash
- run: git config user.name github-actions
shell: bash
- run: git config user.email [email protected]
shell: bash
- uses: actions/checkout@v2
with:
repository: knowgoio/knowgo-vehicle-simulator
path: build/web/docs
ref: gh-pages-docs
- run: touch build/web/.nojekyll
shell: bash
- run: git --work-tree build/web add --all
shell: bash
- run: git commit -m "Automatic deployment by github-actions"
shell: bash
- run: git push origin HEAD:gh-pages --force
shell: bash