-
Notifications
You must be signed in to change notification settings - Fork 25
65 lines (55 loc) · 1.62 KB
/
documentation.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
name: Publish Documentation
on:
workflow_run:
workflows: [ "Release" ]
types: [ completed ]
push:
branches:
- documentation
jobs:
build:
name: Check materials and publish if tagged
runs-on: ubuntu-latest
steps:
- name: Fetch source code
uses: actions/[email protected]
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 21
- name: Cache Maven packages
uses: actions/[email protected]
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Generate JavaDoc
run: mvn compile javadoc:javadoc
- name: Deploy JavaDoc on GH-Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/site/apidocs
keep_files: false
- name: QA check Markdown content
uses: nosborn/[email protected]
with:
files: docs/
- name: Check links in markdown
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
folder-path: 'docs/'
- name: Run mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "latest"
- run: |
mdbook build
- name: Deploy Book on GH-Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/docs
destination_dir: ./book
keep_files: true