From eaa1705f8f23f7e858782492c2e4a2cf58738580 Mon Sep 17 00:00:00 2001 From: Leo Romanovsky Date: Fri, 22 Mar 2024 19:32:34 -0700 Subject: [PATCH] add repositry and staging close --- .github/workflows/publish-sdk.yml | 16 ++++++++++------ pom.xml | 6 ++++++ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-sdk.yml b/.github/workflows/publish-sdk.yml index a188db4..67fb199 100644 --- a/.github/workflows/publish-sdk.yml +++ b/.github/workflows/publish-sdk.yml @@ -17,21 +17,25 @@ jobs: server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} + gpg-passphrase: GPG_PASSPHRASE - name: Download test data run: make test-data - - name: Deploy package with debug logging - run: mvn clean deploy -X + - name: Publish package with debug logging + run: mvn --batch-mode deploy -X env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - - name: Publish package with debug logging + - name: Close the staging repository + run: mvn nexus-staging:close -X + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + + - name: Release the staging repository run: mvn nexus-staging:release -X env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - \ No newline at end of file diff --git a/pom.xml b/pom.xml index c2747b7..1bcb892 100644 --- a/pom.xml +++ b/pom.xml @@ -147,6 +147,12 @@ + + ossrh + Central Repository OSSRH + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + ossrh https://s01.oss.sonatype.org/content/repositories/snapshots