diff --git a/.github/workflows/deploy-sonatype.yml b/.github/workflows/deploy-sonatype.yml index b5ba18e..b0d58af 100644 --- a/.github/workflows/deploy-sonatype.yml +++ b/.github/workflows/deploy-sonatype.yml @@ -39,3 +39,18 @@ jobs: NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + javadoc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v2.1.0 + with: + distribution: adopt + java-version: 16 + - name: create-javadoc + run: mvn -B javadoc:javadoc + - name: Publish Javadoc + uses: JamesIves/github-pages-deploy-action@4.1.4 + with: + branch: gh-pages # The branch the action should deploy to. + folder: target/site/apidocs # The folder the action should deploy.