Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

Update javadoc.yml

Update javadoc.yml #18

Workflow file for this run

name: javadoc
on: [push, pull_request]
jobs:
build-doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build the Java documentation
run: mvn javadoc:javadoc
- uses: actions/upload-pages-artifact@v1
with:
path: target/site/apidocs
deploy-doc:
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
runs-on: ubuntu-latest
needs: build-doc
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2