Skip to content

Commit bd1b05d

Browse files
committed
Add Javadoc deployment step to GitHub Actions
Add .github directory to build workflow paths Change deployment branch for Javadoc to 'docs/coverage' Remove GITHUB_TOKEN from javadoc deployment Removed GITHUB_TOKEN from javadoc deployment step. Change Javadoc publisher action version Updated Javadoc publisher action to a newer version.
1 parent 766a1fd commit bd1b05d

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ on:
2424
- 'sdk-integration-tests/**'
2525
- 'examples/**'
2626
- 'pom.xml'
27+
- '.github/**'
2728
push:
2829
branches:
2930
- main
@@ -67,9 +68,18 @@ jobs:
6768
jacoco-csv-file: sdk/target/site/jacoco/jacoco.csv
6869
badges-directory: sdk/target/site/jacoco
6970

71+
- name: Deploy javadoc to Github Pages
72+
uses: MathieuSoysal/Javadoc-publisher.yml@v3.0.2
73+
with:
74+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
javadoc-branch: "docs/coverage"
76+
target-folder: javadoc
77+
java-version: 17
78+
project: maven
79+
7080
- name: Publish coverage report to GitHub Pages
71-
if: ${{ github.ref == 'refs/heads/main' && matrix.java == 17 }}
81+
if: ${{ matrix.java == 17 }}
7282
uses: JamesIves/github-pages-deploy-action@v4
7383
with:
7484
branch: docs/coverage
75-
folder: sdk/target/site/jacoco
85+
folder: sdk/target/site/jacoco

0 commit comments

Comments
 (0)