From e07ed7a58be49c9be7295490305429e593f8f560 Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Mon, 27 Feb 2023 22:31:19 +0100 Subject: [PATCH] Update the release process to automatically close the staging repository --- ...atype-staging-build.yml => maven-central-release.yml} | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) rename .github/workflows/{sonatype-staging-build.yml => maven-central-release.yml} (95%) diff --git a/.github/workflows/sonatype-staging-build.yml b/.github/workflows/maven-central-release.yml similarity index 95% rename from .github/workflows/sonatype-staging-build.yml rename to .github/workflows/maven-central-release.yml index 7d3197635..6d3905dea 100644 --- a/.github/workflows/sonatype-staging-build.yml +++ b/.github/workflows/maven-central-release.yml @@ -1,4 +1,4 @@ -name: Sonatype Staging +name: Maven Central Release on: workflow_dispatch: @@ -63,7 +63,7 @@ jobs: wget $ARTIFACTORY_URL/spring-batch-integration/$RELEASE_VERSION/spring-batch-integration-$RELEASE_VERSION-javadoc.jar wget $ARTIFACTORY_URL/spring-batch-integration/$RELEASE_VERSION/spring-batch-integration-$RELEASE_VERSION-sources.jar - - name: Sign artifacts and upload them to a Sonatype staging repository + - name: Sign artifacts and release them to Maven Central uses: jvalkeal/nexus-sync@v0 id: nexus with: @@ -73,10 +73,9 @@ jobs: staging-profile-name: ${{ secrets.OSSRH_STAGING_PROFILE_NAME }} create: true upload: true + close: true + release: true generate-checksums: true pgp-sign: true pgp-sign-passphrase: ${{ secrets.GPG_PASSPHRASE }} pgp-sign-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - - - name: Print staging repository Id - run: echo ${{ steps.nexus.outputs.staged-repository-id }}