-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.1 KB
/
javadoc.yml
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
51
name: Generate and Deploy Javadoc
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 20
uses: actions/setup-java@v3
with:
java-version: '20'
distribution: 'adopt'
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Generate Javadoc
run: ./gradlew javadoc
- name: Copy Javadoc to Jekyll Directory
run: |
mkdir -p ghpage/docs/javadoc
cp -r ./build/docs/javadoc/* ghpage/docs/javadoc/
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3.4'
- name: Install Jekyll and Bundler
run: gem install jekyll bundler
- name: Build Jekyll site
run: |
cd ghpage
bundle install
bundle exec jekyll build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./ghpage/_site