Skip to content

Commit f2c20cf

Browse files
committed
Update build.yml
1 parent 7de4d09 commit f2c20cf

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,21 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16-
- name: Set up JDK 21
16+
- name: Set up JDK
1717
uses: actions/setup-java@v4
1818
with:
1919
java-version: '21'
2020
distribution: 'temurin'
2121
cache: maven
2222

23-
- name: Build and Test with Maven
24-
run: mvn -B verify --file pom.xml
23+
- name: Build
24+
run: mvn -B compile --file pom.xml
25+
26+
- name: Run Tests
27+
run: mvn -B test --file pom.xml
2528

2629
- name: Generate Javadoc
30+
if: success()
2731
run: mvn javadoc:javadoc
2832

2933
- name: Deploy Javadoc to GitHub Pages
@@ -32,3 +36,4 @@ jobs:
3236
with:
3337
github_token: ${{ secrets.GITHUB_TOKEN }}
3438
publish_dir: ./target/site/apidocs
39+
publish_branch: javadoc

0 commit comments

Comments
 (0)