-
Notifications
You must be signed in to change notification settings - Fork 59
39 lines (32 loc) · 919 Bytes
/
dokka.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
name: Build Docs
on:
release:
types: [ published ]
permissions:
contents: write
jobs:
dokka:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout latest code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
cache: 'gradle'
- name: Get the tag name
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Build Dokka
run: ./gradlew dokkaHtm -Pversion=${{ env.VERSION }}
- name: Publish documentation
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
branch: gh-pages
folder: build/dokka/html
target-folder: docs
commit-message: "doc: Add documentation for latest release: ${{ env.VERSION }}"