Skip to content

Commit bfc71ef

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/main'
2 parents 8a440ee + 302006b commit bfc71ef

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312

1413
steps:
@@ -34,8 +33,44 @@ jobs:
3433
- name: PMD with Maven
3534
run: mvn pmd:pmd --file pom.xml
3635

36+
java-doc:
37+
runs-on: ubuntu-latest
38+
if: ${{ github.ref == 'refs/heads/main' }}
39+
permissions:
40+
contents: write # if you have a protection rule on your repository, you'll need to give write permission to the workflow.
41+
steps:
42+
- uses: actions/checkout@v4
43+
- name: Deploy JavaDoc 🚀
44+
uses: MathieuSoysal/[email protected]
45+
with:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
javadoc-branch: javadoc
48+
java-version: 21
49+
target-folder: javadoc-core # url will be https://<username>.github.io/<repo>/javadoc-core
50+
project: maven # or gradle
51+
subdirectories: core
52+
53+
deploy:
54+
runs-on: ubuntu-latest
55+
if: ${{ github.ref == 'refs/heads/main' }}
56+
steps:
57+
- uses: actions/checkout@v4
58+
- name: Set up Node 22
59+
uses: actions/setup-node@v4
60+
with:
61+
node-version: '22.x'
62+
cache: 'npm'
63+
cache-dependency-path: ui/package-lock.json
64+
- name: Set up JDK 21
65+
uses: actions/setup-java@v4
66+
with:
67+
java-version: '21'
68+
distribution: 'temurin'
69+
cache: maven
70+
server-id: ossrh
71+
server-username: MAVEN_USERNAME
72+
server-password: MAVEN_PASSWORD
3773
- name: Deploy Nexus
38-
if: ${{ github.ref == 'refs/heads/main' }}
3974
run: mvn -B source:jar deploy --file pom.xml -DskipTests
4075
env:
4176
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}

0 commit comments

Comments
 (0)