Skip to content

Commit 590a0dd

Browse files
authored
Revert workflow to minimal fix matching AdvancedCore PR #270 approach
1 parent 2c82ec9 commit 590a0dd

1 file changed

Lines changed: 9 additions & 20 deletions

File tree

.github/workflows/publish-javadoc.yml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,18 @@ on:
77
- master
88
- main
99

10-
permissions:
11-
contents: write
12-
1310
jobs:
1411
publish:
1512
runs-on: ubuntu-latest
1613
steps:
17-
- uses: actions/checkout@v4
18-
19-
- name: Set up JDK 21
20-
uses: actions/setup-java@v4
21-
with:
22-
java-version: 21
23-
distribution: temurin
24-
cache: maven
25-
26-
- name: Build Javadoc
27-
run: mvn -B -f SimpleAPI/pom.xml -P javadoc javadoc:javadoc
28-
2914
- name: Deploy JavaDoc 🚀
30-
uses: JamesIves/github-pages-deploy-action@v4.7.3
15+
uses: MathieuSoysal/Javadoc-publisher.yml@main
3116
with:
32-
token: ${{ secrets.GITHUB_TOKEN }}
33-
branch: gh-pages
34-
folder: SimpleAPI/target/reports/apidocs
35-
clean: true
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
javadoc-branch: gh-pages
19+
java-version: 21
20+
target-folder: ''
21+
project: maven # or gradle
22+
# subdirectories: moduleA moduleB #for subdirectories support, needs to be run with custom command
23+
custom-command: mvn -f SimpleAPI/pom.xml -P javadoc javadoc:javadoc
24+
javadoc-source-folder: 'SimpleAPI/target/apidocs'

0 commit comments

Comments
 (0)