-
Notifications
You must be signed in to change notification settings - Fork 72
32 lines (31 loc) · 910 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
on:
pull_request:
paths:
- 'docs/src/site/**'
- 'docs/build.gradle'
- 'gradle/**'
jobs:
check-doc-build:
name: netCDF-Java Documentation Build Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Cache Gradle packages
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build docs using Gradle
run: ./gradlew buildJekyllSite
- if: success()
name: Upload a preview of the rendered html
uses: actions/upload-artifact@v2
with:
name: documentation_${{ github.sha }}
path: docs/build/site