Skip to content

Commit 2b758bc

Browse files
authored
Create javadoc.yml
1 parent eca0e97 commit 2b758bc

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/javadoc.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Generate JavaDoc and deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
[ "master" ]
7+
8+
jobs:
9+
build:
10+
permissions:
11+
contents: write
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v5
17+
18+
- name: Set up JDK
19+
uses: actions/setup-java@v5
20+
with:
21+
distribution: 'temurin'
22+
java-version: '25'
23+
24+
- name: Generate JavaDoc
25+
run: ./gradlew javadoc
26+
27+
- name: Deploy to GitHub Pages
28+
uses: peaceiris/actions-gh-pages@v4
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./app/build/docs/javadoc

0 commit comments

Comments
 (0)