Maven Central (Release Sonatype) #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Maven Central (Release Sonatype) | |
on: | |
workflow_dispatch: | |
env: | |
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }} | |
jobs: | |
release_sonatype_repo: | |
if: github.repository == 'spring-projects/spring-pulsar' | |
name: Release Sonatype Staging Repo | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: spring-io/spring-gradle-build-action@v2 | |
- name: Release Sonatype repo to Maven Central | |
env: | |
OSSRH_TOKEN_USERNAME: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }} | |
OSSRH_TOKEN_PASSWORD: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }} | |
run: | | |
./gradlew findOssrhStagingRepository releaseOssrhStagingRepository \ | |
--stacktrace \ | |
-PossrhUsername="$OSSRH_TOKEN_USERNAME" -PossrhPassword="$OSSRH_TOKEN_PASSWORD" |