Skip to content

Commit dece332

Browse files
authored
Create javadoc.yml
1 parent aca090b commit dece332

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/javadoc.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
paths: [ '**.java' ]
6+
7+
jobs:
8+
api-website:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout the repo
12+
uses: actions/checkout@v2
13+
14+
- name: Set up the Java JDK
15+
uses: actions/setup-java@v2
16+
with:
17+
java-version: '11'
18+
distribution: 'adopt'
19+
20+
- name: Build docs with Maven
21+
run: |
22+
rm -rf doc/javadoc
23+
mvn javadoc:javadoc
24+
25+
- name: Tidy up the javadocs
26+
id: tidy
27+
uses: cicirello/[email protected]
28+
with:
29+
path-to-root: doc/javadoc
30+
31+
- name: Log javadoc-cleanup output
32+
run: |
33+
echo "modified-count = ${{ steps.tidy.outputs.modified-count }}"
34+
35+
- name: Upload ftp
36+
uses: sebastianpopp/ftp-action@releases/v2
37+
with:
38+
host: ${{ secrets.FTP_SERVER }}
39+
user: ${{ secrets.FTP_USERNAME }}
40+
password: ${{ secrets.FTP_PASSWORD }}
41+
localDir: "doc/javadoc"
42+
remoteDir: "/opt/LabConnect/doc/javadoc"
43+
options: "--delete --asci"

0 commit comments

Comments
 (0)