-
Notifications
You must be signed in to change notification settings - Fork 73
37 lines (37 loc) · 1.16 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
name: Build docs with Simulate for Web
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
architecture: 'x64'
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- run: flutter pub get
- run: flutter build web --release --base-href /simulate/web/
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install mkdocs
python3 -m pip install mkdocs-material
python3 -m pip install pymdown-extensions
python3 -m pip install mkdocs-git-revision-date-localized-plugin
- name: Git setup and update
run: |
git config user.name "GitHub Action" && git config user.email "[email protected]"
git fetch origin
- name: Build Docs
run: mkdocs build
- name: Add latest web build and deploy
run: |
mv build/web/ site/
mkdocs gh-deploy --dirty