From 7c95e256f52d570fa273336a5188dc0a02cc1a43 Mon Sep 17 00:00:00 2001 From: Maxime Dufour Date: Fri, 26 Apr 2024 09:29:22 +0000 Subject: [PATCH] Fix Workflow to publish to Sonatype Signed-off-by: Maxime Dufour --- .github/workflows/publish.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c0d1ca21..f1d32ae3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,10 +15,12 @@ jobs: java-version: '11' cache: 'maven' server-id: ossrh - server-username: ${{ secrets.SONATYPE_USERNAME }} - server-password: ${{ secrets.SONATYPE_PASSWORD }} + server-username: SONATYPE_USERNAME + server-password: SONATYPE_PASSWORD gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - name: Publish run: mvn deploy env: - GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} \ No newline at end of file + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} \ No newline at end of file