From 2f1d55fffaabea4b6c7b43a0e510306d6d445950 Mon Sep 17 00:00:00 2001 From: "alexandria.gomez" Date: Thu, 21 Nov 2024 11:19:10 -0500 Subject: [PATCH] update pw --- .github/workflows/main.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fc12ea4..6b66cc8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -144,7 +144,11 @@ jobs: run: mvn versions:set -DnewVersion=${{ env.PACKAGE_VERSION }} - name: Publish to Sonatype - run: mvn clean deploy -Dmaven.test.skip=true + run: mvn clean deploy -Dmaven.test.skip=true -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} - name: Tag commit uses: rickstaa/action-create-tag@v1 @@ -177,7 +181,7 @@ jobs: with: java-version: '8' distribution: 'temurin' - server-id: central + server-id: ossrh server-username: ${{ secrets.MAVEN_USERNAME }} server-password: ${{ secrets.MAVEN_PASSWORD }} gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} @@ -190,7 +194,11 @@ jobs: run: mvn versions:set -DnewVersion=${{ env.PACKAGE_VERSION }} - name: Publish to Maven Central - run: mvn clean deploy -P release -Dmaven.test.skip=true + run: mvn clean deploy -P release -Dmaven.test.skip=true -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} - name: Tag commit uses: rickstaa/action-create-tag@v1