-
Notifications
You must be signed in to change notification settings - Fork 19
34 lines (33 loc) · 941 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
name: Build & publish docs
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
- name: 'Install mkdocs-material and plugins'
run: |
python -m pip install mkdocs-material
python -m pip install -r ./docs/mkdocs-material-plugins.txt
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: 'Build API pages'
run: |
./gradlew
dokkaHtmlMultiModule
-Dorg.gradle.internal.repository.max.tentatives=5
-Dorg.gradle.internal.repository.initial.backoff=10000
- name: 'Build & deploy docs'
run: mkdocs gh-deploy --force