Skip to content

Commit

Permalink
New: Generate a token to publish artifacts to the Central Repository …
Browse files Browse the repository at this point in the history
…via OSSRH.
  • Loading branch information
tobiasschaefer committed Oct 4, 2024
1 parent 2b53a65 commit a5b4925
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ jobs:
./gradlew -Pversion=${RELEASE_VERSION} build --warning-mode=all # value 'fail' would be better but the build even this breaks: "mn create-app mytest && cd mytest && ./gradlew clean build --warning-mode fail"
./gradlew -Pversion=${RELEASE_VERSION} -Psigning.password=${SIGNING_PWD} publish --info -Dorg.gradle.internal.http.socketTimeout=180000 -Dorg.gradle.internal.http.connectionTimeout=180000
env:
OSSRH_PWD: ${{ secrets.OSSRH_PWD }}
SIGNING_PWD: ${{ secrets.SIGNING_PWD }}
OSSRH_TOKEN_USER: ${{ secrets.OSSRH_TOKEN_USER }}
OSSRH_TOKEN_PWD: ${{ secrets.OSSRH_TOKEN_PWD }}
5 changes: 3 additions & 2 deletions micronaut-camunda-bpm-feature/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ publishing {
maven {
url = version.endsWith('SNAPSHOT') ? 'https://oss.sonatype.org/content/repositories/snapshots/' : 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
credentials {
username 'micronaut-camunda'
password "$System.env.OSSRH_PWD"
// see "Generating a token" https://central.sonatype.org/publish/generate-token/
username "$System.env.OSSRH_TOKEN_USER"
password "$System.env.OSSRH_TOKEN_PWD"
}
}
}
Expand Down

0 comments on commit a5b4925

Please sign in to comment.