File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2025 SPDX contributors
2+ # SPDX-FileType: SOURCE
3+ # SPDX-License-Identifier: Apache-2.0
4+
5+ name : Generate and publish API JavaDocs
6+ on :
7+ push :
8+ branches : [ master ]
9+ workflow_dispatch :
10+
11+ jobs :
12+ docs :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@v4
17+ with :
18+ fetch-depth : 0
19+ - uses : actions/setup-java@v4
20+ with :
21+ distribution : ' temurin'
22+ java-version : 21
23+ - name : Cache Maven packages
24+ uses : actions/cache@v4
25+ with :
26+ path : ~/.m2
27+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
28+
29+ - name : Generate docs
30+ run : mvn javadoc:javadoc
31+
32+ - name : Deploy docs
33+ uses : peaceiris/actions-gh-pages@v4
34+ with :
35+ github_token : ${{ secrets.GITHUB_TOKEN }}
36+ publish_dir : ./target/reports/apidocs
You can’t perform that action at this time.
0 commit comments