From 1dc88fc15013cc73c9cc34e5c10db8193d4338d2 Mon Sep 17 00:00:00 2001 From: Jiaqi Liu Date: Sat, 13 Jan 2024 09:59:10 +0800 Subject: [PATCH] Fix release (#62) --- .github/workflows/ci-cd.yml | 16 +++++++++++----- pom.xml | 2 -- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index b4111cb1a..6b958b976 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -166,9 +166,15 @@ jobs: "password": "${{ secrets.PASSWORD }}" } ] + profiles: > + [ + { + "id": "ossrh", + "properties": { + "gpg.executable": "gpg", + "gpg.passphrase": "${{ secrets.GPG_PASSPHRASE }}" + } + } + ] - name: Publish to Maven Central - run: | - git config user.signingkey ${{ secrets.GPG_KEY }} - mvn -B deploy -P ossrh - env: - GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }} + run: mvn -B deploy -P ossrh diff --git a/pom.xml b/pom.xml index ec760bd47..6936c34d3 100644 --- a/pom.xml +++ b/pom.xml @@ -702,8 +702,6 @@ sign - ${env.GPG_KEYNAME} - ${env.GPG_KEYNAME} --pinentry-mode loopback