Skip to content

Commit

Permalink
Correctly set sonatype auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
eygraber committed Sep 5, 2022
1 parent b9e69aa commit fa104bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ jobs:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
run: ./gradlew :uri:publishAllPublicationsToMavenCentralRepository -PVERSION_NAME=${{ env.RELEASE_VERSION }} -PSONATYPE_AUTOMATIC_RELEASE=true
run: ./gradlew :uri:publishAllPublicationsToMavenCentralRepository -PVERSION_NAME=${{ env.RELEASE_VERSION }}

- name: Publish the Windows artifacts
if: matrix.os == 'windows-latest'
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
run: gradlew.bat :uri:publishMingwX64PublicationToMavenCentralRepository :uri:publishMingwX86PublicationToMavenCentralRepository -PVERSION_NAME=${{ env.RELEASE_VERSION }} -PSONATYPE_AUTOMATIC_RELEASE=true
run: gradlew.bat :uri:publishMingwX64PublicationToMavenCentralRepository :uri:publishMingwX86PublicationToMavenCentralRepository -PVERSION_NAME=${{ env.RELEASE_VERSION }}
shell: cmd

publish_release:
Expand Down
2 changes: 1 addition & 1 deletion build-logic/src/main/kotlin/publish.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ plugins {

@Suppress("UnstableApiUsage")
mavenPublishing {
publishToMavenCentral(SonatypeHost.S01)
publishToMavenCentral(SonatypeHost.S01, automaticRelease = true)
signAllPublications()
}

0 comments on commit fa104bb

Please sign in to comment.