From 3b2ea5f0614ca0334bd9e7a9f7c3f16d9182a7ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=87=95=E9=99=87=E7=90=AA?= Date: Wed, 2 Apr 2025 18:27:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B5=81=E6=B0=B4=E7=BA=BF):=20github?= =?UTF-8?q?=E7=9A=84=E6=B5=81=E6=B0=B4=E7=BA=BF=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d338d9..966850c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,22 @@ jobs: server-id: sonatype-nexus-staging server-username: ${{ secrets.OSSRH_USER }} server-password: ${{ secrets.OSSRH_PASSWORD }} - gpg-passphrase: ${{ secrets.GPG_PASSWORD }} + gpg-passphrase: ${{ secrets.GPG_PASSWORD }} + + - name: Configure GPG for CI + run: | + # Create .gnupg directory + mkdir -p ~/.gnupg/ + # Configure GPG to use non-interactive mode + echo "use-agent" > ~/.gnupg/gpg.conf + echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf + echo "allow-loopback-pinentry" > ~/.gnupg/gpg-agent.conf + # Set permissions + chmod 700 ~/.gnupg + chmod 600 ~/.gnupg/* + # Restart agent + gpg-connect-agent reloadagent /bye + - name: Publish to Maven Central Repo uses: samuelmeuli/action-maven-publish@v1 with: