forked from ReactiveCircus/FlowBinding
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 990 Bytes
/
deploy-website.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
name: Deploy Website
on:
push:
branches:
- main
paths:
- '**.md'
- 'mkdocs.yml'
- '.github/workflows/**'
jobs:
deploy-website:
name: Generate API docs and deploy website
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v1
with:
java-version: 14
- uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
- run: |
pip3 install mkdocs-material mkdocs-minify-plugin
.buildscript/deploy_website.sh
env:
CI: true
JAVA_TOOL_OPTIONS: -Xmx4g
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dkotlin.incremental=false
DEPLOY_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }}