-
Notifications
You must be signed in to change notification settings - Fork 117
32 lines (27 loc) · 1.08 KB
/
Copy pathapidocs.yml
File metadata and controls
32 lines (27 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This workflow builds and deploys the JavaDoc API docs for the library modules
name: API Docs
# Run this on releases and on demand (manually)
on: [release, workflow_dispatch]
jobs:
build-javadoc-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout latest # release or manually selected ref
uses: actions/checkout@v2
- name: Cache Maven dependencies
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
# Aggregate every library module. Excluding examples and the Maven plugin keeps the
# generators (quickcheck, instancio, jetcheck) and the JUnit 4/5 adapters in, and picks
# up any future module automatically.
- name: Build JavaDoc
run: "mvn -B -ntp javadoc:aggregate -pl '!:jqf-examples,!:jqf-maven-plugin'"
- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: target/site