-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.36 KB
/
javadoc.yaml
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
44
45
46
47
48
49
50
name: JavaDoc
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: adopt
cache: maven
- name: Generate Javadoc with Maven
run: |
mvn javadoc:aggregate
mv target/site/apidocs ${{ runner.temp }}/docs-snapshot
- uses: actions/checkout@v4
with:
ref: docs
- name: Copy Javadoc to Documentation Branch
run: |
mkdir -p ${{ runner.temp }}/docs
mv index.html ${{ runner.temp }}/docs/
mv 0.1.1.2 ${{ runner.temp }}/docs/
mv 0.2.0 ${{ runner.temp }}/docs/
mv 0.3.0 ${{ runner.temp }}/docs/
mv 0.4.0 ${{ runner.temp }}/docs/
mv ${{ runner.temp }}/docs-snapshot/index.html ${{ runner.temp }}/docs-snapshot/index-main.html
mv ${{ runner.temp }}/docs-snapshot ${{ runner.temp }}/docs/0.4.1-snapshot
- name: Deploy to Documentation Branch
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: docs
clean: true
folder: ${{ runner.temp }}/docs
target-folder: .