Skip to content

Commit 79fbccc

Browse files
authored
Update publish-release job to publish docs as GH pages (#10)
1 parent d429fba commit 79fbccc

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,16 @@ jobs:
146146
commit: ci-release
147147
makeLatest: true
148148

149+
- name: Generate Dokka HTML docs
150+
run: ./gradlew dokkaHtmlMultimodule
151+
152+
- name: Publish docs to GitHub pages
153+
uses: peaceiris/actions-gh-pages@v4
154+
with:
155+
github_token: ${{ secrets.github-token }}
156+
publish_dir: ./build/dokka/htmlMultiModule
157+
publish_branch: gh-pages
158+
149159
sync_branches:
150160
if: ${{ !inputs.snapshot }}
151161
needs: publish-release

build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
plugins {
22
base
3-
alias(libs.plugins.detekt) apply true
4-
alias(libs.plugins.spotless) apply true
3+
alias(libs.plugins.kotlin.jvm)
4+
alias(libs.plugins.detekt)
5+
alias(libs.plugins.spotless)
6+
alias(libs.plugins.dokka)
57
}
68

79
val isSnapshot = System.getenv("SNAPSHOT")?.toBoolean() == true

0 commit comments

Comments
 (0)