Skip to content

Maven Central (Release Sonatype) #25

Maven Central (Release Sonatype)

Maven Central (Release Sonatype) #25

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"