Skip to content

Commit

Permalink
Prepare for publication, try again again again
Browse files Browse the repository at this point in the history
  • Loading branch information
serras committed Sep 25, 2022
1 parent ee4abef commit 06e5ad3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ jobs:
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
RELEASE_TAG: ${{ github.ref_name }}
RELEASE_TAG: ${{ github.ref_name }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.PGP_SECRET }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_PASSPHRASE }}
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ tasks.test {
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
}

java {
withSourcesJar()
withJavadocJar()
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import java.net.URI

plugins {
`maven-publish`
signing
}

publishing {
Expand All @@ -12,6 +13,7 @@ publishing {
pom {
description.set("Little utilities for more pleasant immutable data in Kotlin")
url.set("https://kopy.at")
name.set("KopyKat")
licenses {
license {
name.set("The Apache License, Version 2.0")
Expand Down Expand Up @@ -54,3 +56,10 @@ plugins.withType<JavaPlugin>().configureEach {
}
}
}

signing {
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
sign(publishing.publications["maven"])
}

0 comments on commit 06e5ad3

Please sign in to comment.