-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (40 loc) · 1.26 KB
/
apidocs.yml
File metadata and controls
43 lines (40 loc) · 1.26 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
33
34
35
36
37
38
39
40
41
42
43
name: Publish API Documentation
on:
workflow_dispatch:
permissions:
contents: write
jobs:
publish-apidocs:
name: Publish API Documentation
runs-on: ubuntu-latest
env:
MVN: ./mvnw --show-version --batch-mode --no-transfer-progress
steps:
- uses: ts-graphviz/setup-graphviz@v2
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-java@v5
with:
java-version: 25
distribution: temurin
cache: maven
- run: $MVN install
working-directory: bom
- run: $MVN install -Dquickly
- run: $MVN depgraph:aggregate
- run: |
$MVN org.apache.maven.plugins:maven-antrun-plugin:run@copy-doc-files
$MVN org.apache.maven.plugins:maven-antrun-plugin:run@copy-sources
$MVN org.apache.maven.plugins:maven-antrun-plugin:run@copy-demos
$MVN javadoc:javadoc
working-directory: apidoc
- uses: JamesIves/[email protected]
with:
token: ${{ secrets.PUBLISH_CONTENT }}
repository-name: patternfly-java/apidocs
branch: gh-pages
folder: ./apidoc/target/reports/apidocs
clean: true
force: true
single-commit: true