We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent defe852 commit 25b9eb4Copy full SHA for 25b9eb4
.github/workflows/docs.yml
@@ -0,0 +1,33 @@
1
+name: Generate and publish API JavaDocs
2
+on:
3
+ push:
4
+ branches:
5
+ - main
6
+ workflow_dispatch:
7
+
8
+jobs:
9
+ docs:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ with:
15
+ fetch-depth: 0
16
+ - uses: actions/setup-java@v4
17
18
+ distribution: 'temurin'
19
+ java-version: 11
20
+ - name: Cache Maven packages
21
+ uses: actions/cache@v4
22
23
+ path: ~/.m2
24
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
25
26
+ - name: Generate docs
27
+ run: mvn javadoc:javadoc
28
29
+ - name: Deploy docs
30
+ uses: peaceiris/actions-gh-pages@v4
31
32
+ github_token: ${{ secrets.GITHUB_TOKEN }}
33
+ publish_dir: ./target/reports/apidocs
0 commit comments