-
Notifications
You must be signed in to change notification settings - Fork 0
99 lines (83 loc) · 2.15 KB
/
strictdoc.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Github Pages Build and Deploy
on:
pull_request:
push:
branches: [ master ]
env:
FLUTTER_VERSION: '3.16.0'
FLUTTER_CHANNEL: 'stable'
jobs:
strictdoc:
name: Generate StrictDoc
runs-on: ubuntu-latest
container: barabas5532/strictdoc:0.0.26
steps:
- name: Checkout
uses: actions/checkout@v3
- name: StrictDoc export
run: strictdoc export requirements
- uses: actions/upload-artifact@v3
with:
name: requirements
path: output/html
retention-days: 5
doxygen:
name: Generate Doxygen
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Doxygen
uses: mattnotmitt/[email protected]
- name: Doxygen warnings
run: cat docs/warnings.log
- uses: actions/upload-artifact@v3
with:
name: firmware-docs
path: docs/html
retention-days: 5
dart-doc:
name: Generate dart doc
runs-on: ubuntu-latest
defaults:
run:
working-directory:
dart/frontend
steps:
- uses: actions/checkout@v3
- name: Install flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: ${{ env.FLUTTER_CHANNEL }}
cache: true
- name: Flutter pub cache
uses: actions/cache@v2
with:
path: ${{ env.PUB_CACHE }}
key: flutter-pub-${{ github.job }}-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
flutter-pub-${{ github.job }}-
- run: flutter pub get
- run: dart doc .
- uses: actions/upload-artifact@v3
with:
name: frontend-docs
path: dart/frontend/doc/api
retention-days: 5
deploy:
if: github.ref == 'refs/heads/master'
needs: [strictdoc, doxygen, dart-doc]
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
path: html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: html