-
Notifications
You must be signed in to change notification settings - Fork 17
42 lines (34 loc) · 907 Bytes
/
docs_pr.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
name: Build docs
on:
pull_request:
paths:
- 'docs/**'
- 'mkdocs.yml'
- '.github/workflows/docs.yml'
- '.github/workflows/docs_pr.yml'
branches:
- 'master'
jobs:
build:
name: Build docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build docs
run: |
./gradlew dokkaHtmlMultiModule
mv ./build/dokka/htmlMultiModule docs/api
- name: Install dependencies
run: |
pip install mkdocs-material mkdocs-material-extensions mkdocs-markdownextradata-plugin
- name: Build docs
run: mkdocs build -v