-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (34 loc) · 1.18 KB
/
docs.yaml
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: Build and Publish Docs
on:
push:
tags:
- '[0-9]+.[0-9]+.0' # New Major or Minor Releases
jobs:
docs:
runs-on: ubuntu-24.04
steps:
- name: Checkout Project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
node-version-file: '.nvmrc'
- name: Set up JDK
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4
with:
distribution: 'temurin'
java-version: '21'
- name: Use tag as version
run: echo "${GITHUB_REF#refs/*/}" > version.txt
- name: Checkout Old Docs Versions for Index Page
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: gh-pages
path: build/dokka
- name: Generate Docs with Dokka
run: ./gradlew :dokkaHtmlMultiModule
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/dokka
cname: api.modelix.org