From a885474ff012ee9e776fc6d848592c2e990824c4 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 31 Jul 2021 12:09:34 +0100 Subject: [PATCH] Build and store javadocs (#213) * Build and store javadocs * fix typo * fix more typos * Switch to publish to gh-pages * Remove from maven-build * Add to deploy-sonatype --- .github/workflows/deploy-sonatype.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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.