From 39539c88cd7bd736bf9260138fa93fe3389c5082 Mon Sep 17 00:00:00 2001 From: ariwk Date: Sat, 29 Jun 2024 14:47:01 +0200 Subject: [PATCH] ci: add deployment to Maven Central Refs: #26 --- .github/workflows/maven-release.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 147b46a..f0636d1 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -56,10 +56,6 @@ 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: > @@ -94,7 +90,8 @@ jobs: - name: Publish to Maven Central # if: ${{ !endsWith(steps.artefact_version.outputs.version, '-SNAPSHOT') && github.ref == 'refs/heads/main' }} run: mvn --batch-mode deploy -PmavenCentralDeploy - # env: + env: + MAVEN_GPG_KEY: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PRIVATE_KEY }} # SIGN_KEY_PASS: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PASSPHRASE }} # OSSRH_USERNAME: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_USERNAME }} # OSSRH_PASSWORD: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_TOKEN }}