-
-
Notifications
You must be signed in to change notification settings - Fork 25
35 lines (30 loc) · 867 Bytes
/
publish_docs.yml
File metadata and controls
35 lines (30 loc) · 867 Bytes
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
name: Publish docs via GitHub Pages
on:
push:
branches:
- master
paths:
- "README.md"
- "CHANGELOG.md"
- "mkdocs.yml"
- ".github/workflows/publish_docs.yml"
- ".github/workflows/prepare_mkdocs.sh"
jobs:
deploy:
name: Generate API docs and deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Cache Gradle
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Prepare Docs
run: sudo bash .github/workflows/prepare_mkdocs.sh
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}