From 19694ad9f8de5f0d1addf0b8142dd4e8faf22e6a Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 13 Jan 2024 09:30:58 +0800 Subject: [PATCH] Configure GPG key --- .github/workflows/ci-cd.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 612d289d6..b4111cb1a 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -167,6 +167,8 @@ jobs: } ] - name: Publish to Maven Central - run: mvn -B deploy -P ossrh + run: | + git config user.signingkey ${{ secrets.GPG_KEY }} + mvn -B deploy -P ossrh env: GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}