Skip to content

Commit 71de57d

Browse files
authored
Update maven.yml
1 parent c27e895 commit 71de57d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/maven.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
types: [opened, synchronize, reopened]
88
jobs:
99
build:
10-
name: Build and analyze
10+
name: Build, analyse, publish
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
@@ -33,8 +33,13 @@ jobs:
3333
- name: Build and analyze
3434
env:
3535
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
36-
run: mvn -B -Puber-jar verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=micycle1_PTS
36+
run: mvn -B -Puber-jar verify javadoc:javadoc org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=micycle1_PTS
3737
- uses: actions/upload-artifact@v4
3838
with:
3939
name: PGS Uber-jar
4040
path: target/*.jar
41+
- name: Publish Javadocs
42+
uses: JamesIves/github-pages-deploy-action@4
43+
with:
44+
branch: gh-pages # The branch the action should deploy to.
45+
folder: target/reports/apidocs # The folder the action should deploy.

0 commit comments

Comments
 (0)