Skip to content

Commit 6d3d97a

Browse files
committed
Move deploy to github-pages to release.yml
Signed-off-by: Dmitry Sulman <[email protected]>
1 parent 068e896 commit 6d3d97a

File tree

5 files changed

+44
-52
lines changed

5 files changed

+44
-52
lines changed

.github/workflows/github-pages.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,34 @@ jobs:
5151
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
5252
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
5353
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
54+
55+
deploy-dokka-to-github-pages:
56+
needs: release
57+
permissions:
58+
contents: read
59+
pages: write
60+
id-token: write
61+
environment:
62+
name: github-pages
63+
url: ${{ steps.deployment.outputs.page_url }}
64+
runs-on: ubuntu-latest
65+
steps:
66+
- uses: actions/checkout@v4
67+
- name: Set up JDK 17
68+
uses: actions/setup-java@v4
69+
with:
70+
java-version: '17'
71+
distribution: 'temurin'
72+
- name: Setup Gradle
73+
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
74+
- name: Build Dokka HTML
75+
run: ./gradlew clean dokkaGeneratePublicationHtml
76+
- name: Setup Pages
77+
uses: actions/configure-pages@v5
78+
- name: Upload artifact
79+
uses: actions/upload-pages-artifact@v3
80+
with:
81+
path: './build/dokka/html'
82+
- name: Deploy to GitHub Pages
83+
id: deployment
84+
uses: actions/deploy-pages@v4

build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
plugins {
22
kotlin("jvm")
3+
alias(libs.plugins.dokka)
4+
alias(libs.plugins.dokka.javadoc)
35
alias(libs.plugins.jreleaser)
46
}
57

@@ -10,13 +12,21 @@ repositories {
1012

1113
group = "io.github.dmitrysulman"
1214

15+
dependencies {
16+
dokka(project("logback-access-reactor-netty"))
17+
}
18+
1319
tasks.jreleaserFullRelease {
1420
subprojects.forEach {
1521
val copyStagingDeployToRoot by it.tasks.existing
1622
dependsOn(copyStagingDeployToRoot)
1723
}
1824
}
1925

26+
tasks.jar {
27+
enabled = false
28+
}
29+
2030
jreleaser {
2131
release {
2232
github {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=1.0.1-RC1
1+
version=1.0.2-RC1
22
org.gradle.caching=true
33
org.gradle.configuration-cache=false
44
org.gradle.jvmargs=-Xmx2g

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ reactorNetty-http = { group = "io.projectreactor.netty", name = "reactor-netty-h
3232
slf4j-api = { group = "org.slf4j", name = "slf4j-api", version.ref = "slf4j" }
3333

3434
[plugins]
35+
dokka = { id = "org.jetbrains.dokka" }
36+
dokka-javadoc = { id = "org.jetbrains.dokka-javadoc" }
3537
jreleaser = { id = "org.jreleaser", version.ref = "jreleaser" }

0 commit comments

Comments
 (0)