-
Notifications
You must be signed in to change notification settings - Fork 48
41 lines (37 loc) · 989 Bytes
/
doc.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
name: Doc
on:
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
java_version: [17]
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure git
run: |
git submodule init
git submodule update
git config --local user.email "[email protected]"
git config --local user.name "ynojima"
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java_version }}
- name: Build with Gradle
run: |
./gradlew javadoc generateReferenceJA generateReferenceEN
- name: Commit & Push pages
run: |
rm -rf docs
mv build/docs/asciidoc docs
git add docs
git commit -m "Update docs"
git checkout -b gh-pages
git push origin gh-pages -f