-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (66 loc) · 2.28 KB
/
docs.yml
File metadata and controls
80 lines (66 loc) · 2.28 KB
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
name: Deploy Documentation
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
concurrency:
group: docs-deploy
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: temurin
cache: maven
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
cache-dependency-path: website/package-lock.json
- name: Install website dependencies
run: npm ci
working-directory: website
- name: Build project (skip tests)
run: mvn install -DskipTests -q
- name: Generate Javadoc (aggregate)
run: |
mvn javadoc:aggregate -q \
-Dmaven.javadoc.failOnError=false \
-DadditionalJOption=--enable-preview \
-Ddoclint=none \
-pl '!:storm-kotlin,!:storm-kotlin-spring,!:storm-kotlin-spring-boot-starter,!:storm-kotlinx-serialization,!:storm-metamodel-ksp,!:storm-spring-boot-starter,!:storm-jackson3'
- name: Copy Javadoc to website/static/api/java
run: |
mkdir -p website/static/api/java
if [ -d target/reports/apidocs ]; then
cp -r target/reports/apidocs/* website/static/api/java/
fi
- name: Copy KDoc to website/static/api/kotlin
run: |
for module in storm-kotlin storm-kotlin-spring storm-kotlin-spring-boot-starter storm-metamodel-ksp storm-kotlinx-serialization; do
if [ -d "$module/target/dokka" ]; then
mkdir -p "website/static/api/kotlin/$module"
cp -r "$module/target/dokka/"* "website/static/api/kotlin/$module/"
fi
done
- name: Generate llms-full.txt
run: bash scripts/generate-llms-full.sh
working-directory: website
- name: Build Docusaurus
run: npm run build
working-directory: website
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build
force_orphan: true