Skip to content

Commit

Permalink
updating the names to avoid signing github publications
Browse files Browse the repository at this point in the history
  • Loading branch information
balda-rdx committed Oct 25, 2023
1 parent a1001d6 commit bae26a8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ jobs:
- name: Build and publish Kotlin
uses: gradle/gradle-build-action@v2
with:
arguments: build publishMavenPublicationToGitHubPackagesRepository
arguments: build publishMavenGithubPublicationToGitHubPackagesRepository
build-root-directory: interop/kotlin/ret-kotlin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -405,7 +405,7 @@ jobs:
- name: Build and publish Kotlin
uses: gradle/gradle-build-action@v2
with:
arguments: build publishMavenPublicationToMavenCentralRepository -Psigning.secretKeyRingFile=rdx-secring.gpg -Psigning.password=${{ env.GPG_PASSPHRASE_GPG_PASSPHRASE }} -Psigning.keyId=${{ secrets.GPG_KEY_ID }} -PossrhUsername=${{ env.MAVEN_CENTRAL_MAVEN_CENTRAL_USERNAME }} -PossrhPassword=${{ env.MAVEN_CENTRAL_MAVEN_CENTRAL_PASSWORD }}
arguments: build publishMavenCentralPublicationToMavenCentralRepository -Psigning.secretKeyRingFile=rdx-secring.gpg -Psigning.password=${{ env.GPG_PASSPHRASE_GPG_PASSPHRASE }} -Psigning.keyId=${{ secrets.GPG_KEY_ID }} -PossrhUsername=${{ env.MAVEN_CENTRAL_MAVEN_CENTRAL_USERNAME }} -PossrhPassword=${{ env.MAVEN_CENTRAL_MAVEN_CENTRAL_PASSWORD }}
build-root-directory: interop/kotlin/ret-kotlin
publish-android-maven:
needs: [build, generate-uniffi-bindings]
Expand Down
13 changes: 10 additions & 3 deletions interop/kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ java {

publishing {
publications {
create<MavenPublication>("maven") {
create<MavenPublication>("mavenGithub") {
groupId = "com.radixdlt"
artifactId = "radix-engine-toolkit-kotlin"
version = providers.gradleProperty("ret-version").getOrNull()

from(components["java"])
}
create<MavenPublication>("mavenCentral") {
groupId = "com.radixdlt"
artifactId = "radix-engine-toolkit-kotlin"
version = providers.gradleProperty("ret-version").getOrNull()
Expand All @@ -43,7 +50,7 @@ publishing {
}

maven {
name = "MavenCentral"
name = "mavenCentral"
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
credentials {
username = project.findProperty("ossrhUsername") as String?
Expand All @@ -54,5 +61,5 @@ publishing {
}

signing {
sign(publishing.publications["maven"])
sign(publishing.publications["mavenCentral"])
}

0 comments on commit bae26a8

Please sign in to comment.