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
This commit is contained in:
Paul Campbell 2021-07-31 12:09:34 +01:00 committed by GitHub
parent 447cb07fc4
commit a885474ff0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,3 +39,18 @@ jobs:
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }} GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} 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.