Skip to content

Commit

Permalink
add: cd
Browse files Browse the repository at this point in the history
  • Loading branch information
kigawa01 committed Dec 30, 2024
1 parent b2a4b57 commit 38aaff5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_maven_central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
-PmavenCentralPassword=${{ secrets.MAVEN_PASSWORD }}
-PsigningInMemoryKeyId=${{ secrets.MAVEN_GPG_KEY_ID }}
-PsigningInMemoryPassword=${{ secrets.MAVEN_GPG_PASSPHRASE }}
publishKotlinMultiplatformPublicationToMavenCentralRepository
allTests publishKotlinMultiplatformPublicationToMavenCentralRepository
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
Expand Down
21 changes: 2 additions & 19 deletions convention-plugins/src/main/kotlin/root.publication.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id("io.github.gradle-nexus.publish-plugin")
}
object Conf {
const val GROUP = "net.kigawa.hakate"
const val GROUP = "net.kigawa"
const val VERSION = "1.0.0"
}

Expand All @@ -13,28 +13,11 @@ allprojects {
version = Conf.VERSION
}

//publishing {
// repositories {
// maven {
// name = "OSSRH"
// url = URI("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
// credentials {
// username = System.getenv("MAVEN_USERNAME")
// password = System.getenv("MAVEN_PASSWORD")
// }
// }
// }
//}
nexusPublishing {
// Configure maven central repository
// https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-ossrh
repositories {
sonatype { //only for users registered in Sonatype after 24 Feb 2021
// nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
// snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
sonatype()

}
}

0 comments on commit 38aaff5

Please sign in to comment.