Skip to content

Merge pull request #249 from spdx/spaceafterregex #74

Merge pull request #249 from spdx/spaceafterregex

Merge pull request #249 from spdx/spaceafterregex #74

Workflow file for this run

name: Generate and publish API JavaDocs
on:
push:
branches:
- master
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
- name: Generate docs
run: mvn javadoc:javadoc
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/site/apidocs