From 1d3703ca626edf1a32b5c525d7e5233769309a64 Mon Sep 17 00:00:00 2001 From: ariwk Date: Sat, 29 Jun 2024 14:24:04 +0200 Subject: [PATCH] ci: add deployment to Maven Central Refs: #26 --- .github/workflows/maven-release.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 20026ec..30d1908 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -17,11 +17,11 @@ jobs: distribution: adopt java-version: 17 cache: maven - server-id: ossrh - server-username: OSSRH_USERNAME - server-password: OSSRH_PASSWORD - gpg-private-key: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PRIVATE_KEY }} - gpg-passphrase: SIGN_KEY_PASS + # server-id: ossrh + # server-username: OSSRH_USERNAME + # server-password: OSSRH_PASSWORD + # gpg-private-key: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PRIVATE_KEY }} + # gpg-passphrase: SIGN_KEY_PASS - uses: whelk-io/maven-settings-xml-action@9dc09b23833fa9aa7f27b63db287951856f3433d # v22 with: repositories: > @@ -56,7 +56,10 @@ jobs: { "id": "gpg.passphrase", "passphrase": "${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PASSPHRASE }}" - } + }, + "id": "gpg.keyEnvName", + "passphrase": "${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PRIVATE_KEY }}" + }, ] profiles: > [