From fb4bbb1ce551085bff38772e51d630b1f8825e8d Mon Sep 17 00:00:00 2001 From: redkale Date: Sat, 1 Jun 2024 00:01:27 +0800 Subject: [PATCH] pom --- .github/workflows/maven_snapshot.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/maven_snapshot.yml b/.github/workflows/maven_snapshot.yml index 154af4d3f..856236df0 100644 --- a/.github/workflows/maven_snapshot.yml +++ b/.github/workflows/maven_snapshot.yml @@ -25,6 +25,14 @@ jobs: server-password: ${{ secrets.OSSRHPASSWORD }} gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} gpg-passphrase: ${{ secrets.OSSRH_GPG_SECRET_PASSWORD }} + - name: debug settings.xml + run: cat /home/runner/.m2/settings.xml + - name: Check if secret exists + run: | + if [[ -z "${{ secrets.OSSRH_GPG_SECRET_KEY }}" ]]; then + echo "Secret does not exist" + else + echo "Secret exists" - name: Show the Gpg run: gpg --list-secret-keys - name: Detail the Gpg