-
Notifications
You must be signed in to change notification settings - Fork 24
48 lines (38 loc) · 1.08 KB
/
publish-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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Publish docs
on:
# Run on new version tags...
push:
tags:
- v*
# or manually from workflow dispatch (from GitHub UI)
workflow_dispatch:
jobs:
deploy_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build Dokka API docs
id: gradle
run: ./gradlew dokkaHtml --no-configuration-cache
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r .github/workflows/mkdocs-requirements.txt
- name: Build site
run: ./deploy_website.sh --ci
- name: Deploy site
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site