Skip to content

Commit

Permalink
Update release to use token
Browse files Browse the repository at this point in the history
  • Loading branch information
robfletcher committed Jun 23, 2024
1 parent 3526cbb commit 6a09062
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:
- name: Publish to Sonatype
run: ./gradlew -Pversion=${GITHUB_REF:11} publish
env:
ORG_GRADLE_PROJECT_nexusUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_nexusPassword: ${{ secrets.NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_ossrhToken: ${{ secrets.OSSRH_TOKEN }}
ORG_GRADLE_PROJECT_ossrhTokenPassword: ${{ secrets.OSSRH_TOKEN_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
- name: Release to Sonatype
run: ./gradlew -Pversion=${GITHUB_REF:11} closeAndReleaseRepository
env:
ORG_GRADLE_PROJECT_nexusUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_nexusPassword: ${{ secrets.NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_ossrhToken: ${{ secrets.OSSRH_TOKEN }}
ORG_GRADLE_PROJECT_ossrhTokenPassword: ${{ secrets.OSSRH_TOKEN_PASSWORD }}

site:
name: Publish website
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import kotlin.text.RegexOption.IGNORE_CASE
plugins {
kotlin("jvm") apply false
id("io.codearte.nexus-staging") version "0.30.0"
id("org.jmailen.kotlinter") version "4.3.0" apply false
id("org.jmailen.kotlinter") version "4.4.0" apply false
id("com.adarshr.test-logger") version "4.0.0" apply false
id("com.github.ben-manes.versions") version "0.51.0"
id("org.jetbrains.dokka")
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ repositories {

dependencies {
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.9.20")
implementation("com.netflix.nebula:nebula-publishing-plugin:20.3.0")
implementation("com.netflix.nebula:nebula-publishing-plugin:21.0.0")
}
5 changes: 4 additions & 1 deletion buildSrc/src/main/kotlin/published.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ publishing {
maven {
name = "nexus"
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials(PasswordCredentials::class)
credentials {
username = findProperty("ossrhToken") as String
password = findProperty("ossrhTokenPassword") as String
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ versions.minutest=1.13.0
versions.mockk=1.13.11
versions.protobuf=4.27.1
versions.opentest4j=1.3.0
versions.spring-boot=3.1.5
versions.spring-boot=3.3.1

0 comments on commit 6a09062

Please sign in to comment.