Skip to content

Commit e6f2fbf

Browse files
committed
Fix workflows
1 parent 49c3f4c commit e6f2fbf

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/maven-publish-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ jobs:
3030
./gradlew publish
3131
-DmavenCentralUsername=${{secrets.MAVEN_CENTRAL_USERNAME}}
3232
-DmavenCentralPassword=${{secrets.MAVEN_CENTRAL_TOKEN}}
33-
-DsigningInMemoryKey=${{secrets.MAVEN_CENTRAL_GPG_SECRET_KEY}}
34-
-DsigningInMemoryKeyPassword=${{secrets.MAVEN_CENTRAL_GPG_SECRET_KEY_PASSWORD}}
33+
-DcustomSigningInMemoryKey=${{secrets.MAVEN_CENTRAL_GPG_SECRET_KEY}}
34+
-DcustomSigningInMemoryKeyPassword=${{secrets.MAVEN_CENTRAL_GPG_SECRET_KEY_PASSWORD}}
3535

.idea/.gitignore

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

buildSrc/src/main/kotlin/maven-publish-script.gradle.kts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ plugins {
1717
id("com.vanniktech.maven.publish")
1818
}
1919

20+
signing {
21+
useInMemoryPgpKeys(
22+
project.findProperty("customSigningInMemoryKey")?.toString(),
23+
project.findProperty("customSigningInMemoryKeyPassword")?.toString()
24+
)
25+
}
26+
2027
mavenPublishing {
2128
coordinates(
2229
groupId = project.group.toString(),
@@ -68,7 +75,7 @@ tasks.withType<DokkaTaskPartial>().configureEach {
6875

6976
// Read docs for more details: https://kotlinlang.org/docs/dokka-gradle.html#source-link-configuration
7077
sourceLink {
71-
val exampleDir = "https://github.com/BierDav/Kotlinmailer/tree/master/packages"
78+
val exampleDir = "https://github.com/$githubProject/tree/master/packages"
7279

7380
localDirectory.set(rootProject.projectDir)
7481
remoteUrl.set(URI(exampleDir).toURL())

0 commit comments

Comments
 (0)