From ddc98d53a5f51daf9e8b07547906b52d6e531289 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Wed, 28 Aug 2024 17:20:22 -0300 Subject: [PATCH] JReleaser --- .github/workflows/deploy-artifacts.yml | 18 +++++++++++++----- jreleaser.yml | 11 +++++------ 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy-artifacts.yml b/.github/workflows/deploy-artifacts.yml index 27c2255..8e553c4 100644 --- a/.github/workflows/deploy-artifacts.yml +++ b/.github/workflows/deploy-artifacts.yml @@ -82,8 +82,16 @@ jobs: VERSION: ${{ env.PAYLOAD_VERSION }} - name: Deploy to Central - run: | - mvn org.sonatype.plugins:nexus-staging-maven-plugin:1.7.0:deploy-staged-repository -DserverId=ossrh \ - -DrepositoryDirectory=./repository \ - -DstagingProfileId=io.quarkiverse \ - -DnexusUrl=https://s01.oss.sonatype.org/ + uses: jreleaser/release-action@v2 + env: + JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_PRIVATE_KEY }} + JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + JRELEASER_NEXUS2_USERNAME: ${{ secrets.OSSRH_USERNAME }} + JRELEASER_NEXUS2_TOKEN: ${{ secrets.OSSRH_TOKEN }} + +# - name: Deploy to Central +# run: | +# mvn org.sonatype.plugins:nexus-staging-maven-plugin:1.7.0:deploy-staged-repository -DserverId=ossrh \ +# -DrepositoryDirectory=./repository \ +# -DstagingProfileId=io.quarkiverse \ +# -DnexusUrl=https://s01.oss.sonatype.org/ diff --git a/jreleaser.yml b/jreleaser.yml index 185dbd4..e54b5e9 100644 --- a/jreleaser.yml +++ b/jreleaser.yml @@ -1,17 +1,16 @@ signing: active: ALWAYS armored: true + verify: false deploy: maven: nexus2: maven-central: - # List of directories where staged artifacts can be found. - stagingRepositories: - - repository - # URL where the Nexus2 snapshots are enabled. + active: ALWAYS + url: https://s01.oss.sonatype.org/service/local snapshotUrl: https://s01.oss.sonatype.org/content/repositories/snapshots/ - # Closes the staging repository. closeRepository: true - # Releases the staging repository. releaseRepository: true + stagingRepositories: + - ./repository