-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 894 Bytes
/
doc.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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Documentation
on:
push:
branches: [ main ]
jobs:
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.2'
channel: 'stable'
- name: Get dependencies
run: flutter pub get && flutter pub global activate dartdoc
- name: Generate documentation
run: flutter pub global run dartdoc
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PA_TOKEN }}
external_repository: lunacd/omnilore_documentation
publish_branch: main
publish_dir: ./doc/api