-
Notifications
You must be signed in to change notification settings - Fork 28
34 lines (33 loc) · 957 Bytes
/
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
on:
pull_request:
paths:
- 'docs/**'
- 'gradle/**'
jobs:
check-doc-build:
name: TDS Documentation Build Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build docs using Gradle
run: './gradlew :docs:build'
- name: Upload a preview of the rendered html
if: success()
uses: actions/upload-artifact@v4
with:
name: documentation_${{ github.sha }}
path: docs/build/site