update docs #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: JavaDocs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| javadocs: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write # needed to publish to GitHub Pages | |
| id-token: write # required for GitHub Pages deployment | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| cache: maven | |
| server-id: central | |
| server-username: MAVEN_USERNAME | |
| server-password: MAVEN_PASSWORD | |
| - name: Generate Javadocs | |
| run: mvn -B javadoc:javadoc -Pcentral | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload Javadocs artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: target/site/apidocs | |
| - name: Deploy Javadocs to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |