-
Notifications
You must be signed in to change notification settings - Fork 766
47 lines (41 loc) · 1.11 KB
/
docs.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
name: Docs
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
- name: Gradle caches
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: caches-${{ runner.os }}-${{ hashFiles('**/*.gradle') }}
- name: Gradle wrapper caches
uses: actions/cache@v3
with:
path: ~/.gradle/wrapper
key: wrapper-${{ runner.os }}-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- name: Generate Reference Docs
run:
./gradlew dokkaHtmlMultiModule
- name: Install and Build
run: |
yarn
yarn build
working-directory: website/
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: website/build