diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5ca623e7..4f64ce85 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,14 +21,14 @@ jobs: server-username: SONATYPE_USERNAME server-password: SONATYPE_PASSWORD gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} - gpg-passphrase: GPG_PASSPHRASE + gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Publish to Apache Maven Central run: mvn clean -DskipTests deploy --settings .settings.xml -P release,ossrh env: SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - name: Upload jars file uses: actions/upload-artifact@v4 diff --git a/.settings.xml b/.settings.xml index ec9cefcc..acbca70c 100644 --- a/.settings.xml +++ b/.settings.xml @@ -7,6 +7,10 @@ ${env.SONATYPE_USERNAME} ${env.SONATYPE_PASSWORD} + + gpg.passphrase + ${env.MAVEN_GPG_PASSPHRASE} + @@ -15,9 +19,6 @@ false - - ${env.GPG_PASSPHRASE} -