Skip to content

Commit 22d2ed5

Browse files
authored
publish javadoc (#11)
1 parent 668d182 commit 22d2ed5

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ jobs:
4545
HF_API_KEY: ${{ secrets.HF_API_KEY }}
4646
PALM_API_KEY: ${{ secrets.PALM_API_KEY }}
4747
run: mvn --batch-mode --update-snapshots package
48-
48+
- name: Generate documentation
49+
run: mvn javadoc:aggregate
4950

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy Javadoc
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 1
19+
20+
- name: Set up Java
21+
uses: actions/setup-java@v3
22+
with:
23+
java-version: 8
24+
distribution: 'temurin'
25+
cache: maven
26+
27+
- name: Generate Javadoc
28+
run: mvn javadoc:aggregate
29+
shell: bash
30+
31+
- name: Deploy to GitHub Page 🚀
32+
uses: JamesIves/github-pages-deploy-action@v4.4.3
33+
with:
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+
branch: javadoc
36+
clean: true
37+
folder: target/site/apidocs
38+
target-folder: javadoc

0 commit comments

Comments
 (0)