From 6bbbec838ad7e83821a1d2d4a780a9f6662d5bbf Mon Sep 17 00:00:00 2001 From: THOREL Arnaud Date: Tue, 28 Nov 2023 15:09:36 +0100 Subject: [PATCH] fix --- .github/workflows/build.yml | 3 +-- .github/workflows/maven-publish.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c031134..d1da6db 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: java-version: '17' distribution: 'temurin' cache: maven - gpg-private-key: MAVEN_GPG_PASSPHRASE + gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD @@ -37,7 +37,6 @@ jobs: env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY }} run: | cat /home/runner/.m2/settings.xml mvn -ntp -B deploy -DskipTests=true diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index dc73d96..d066acc 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -20,7 +20,7 @@ jobs: java-version: '17' distribution: 'temurin' cache: maven - gpg-private-key: MAVEN_GPG_PASSPHRASE + gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD @@ -28,7 +28,6 @@ jobs: env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | git config --global user.name 'github-actions'