-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (31 loc) · 901 Bytes
/
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
name: Javadoc
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('build.gradle') }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: |
rm -r ./docs/main
./gradlew javadoc --no-daemon
- name: Add and push
run: |
git config user.email "[email protected]"
git config user.name "Automation"
git add -v docs
git diff --staged --quiet && echo "No changes." || git commit -a -v -m "Build Javadocs" && git push -v