Skip to content

Commit 1f4b4ec

Browse files
committed
rewrite website
1 parent 0d85cf1 commit 1f4b4ec

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/website.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,27 @@ jobs:
1919
distribution: "adopt"
2020
java-version: "15"
2121

22-
- uses: actions/cache@v4
23-
id: maven-cache
22+
- uses: gradle/actions/setup-gradle@v3
2423
with:
25-
path: ~/.m2/
26-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
24+
gradle-version: wrapper
25+
26+
- name: Setup Gradle Cache
27+
uses: actions/cache@v4
28+
with:
29+
path: |
30+
~/.gradle/caches
31+
~/.gradle/wrapper
32+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
2733
restore-keys: |
28-
${{ runner.os }}-maven-
34+
${{ runner.os }}-gradle-
2935
3036
- name: Javadocs Build
3137
run: |
32-
mvn -B -V clean site -Dh3.use.docker=false
38+
./gradlew javadoc -Ph3UseDocker=false
3339
3440
# Deploy the book's HTML to gh-pages branch
3541
- name: GitHub Pages action
3642
uses: peaceiris/[email protected]
3743
with:
3844
github_token: ${{ secrets.GITHUB_TOKEN }}
39-
publish_dir: target/site/apidocs/
45+
publish_dir: build/docs/javadoc/

0 commit comments

Comments
 (0)