-
Notifications
You must be signed in to change notification settings - Fork 22
53 lines (50 loc) · 1.24 KB
/
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
49
50
51
52
53
# Modified from https://github.com/libgdx/libgdx/blob/master/.github/workflows/build-publish.yml
name: Build Documentation
on:
workflow_dispatch:
branches:
- main
push:
paths:
- 'docs/**'
branches:
- main
jobs:
documentation:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build
run: |
export NDK_HOME=$ANDROID_NDK_LATEST_HOME
./gradlew jniGen
- name: All Javadoc
run: |
./gradlew allJavadoc
- name: Moving Javadoc
run: |
mv build/docs/javadoc docs/.vuepress/public/
- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
version: 8
run_install: false
- name: Build VuePress
run: |
cd docs
pnpm install
pnpm docs:build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/.vuepress/dist
single-commit: true