We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa0df7f commit abdd9fdCopy full SHA for abdd9fd
.github/workflows/main.yml
@@ -31,8 +31,14 @@ jobs:
31
server-id: central
32
server-username: MAVEN_USERNAME
33
server-password: MAVEN_PASSWORD
34
- gpg-private-key: ${{ secrets.SONATYPE_GPG_KEY }} # Value of the GPG private key to import
35
- gpg-passphrase: MAVEN_GPG_PASSPHRASE # Env var name for GPG passphrase
+
+ - name: Import GPG key
36
+ if: matrix.deploy-enabled
37
+ run: |
38
+ echo "${{ secrets.SONATYPE_GPG_KEY }}" | base64 --decode | gpg --batch --import
39
+ gpg --list-secret-keys --keyid-format LONG
40
+ env:
41
+ GPG_TTY: $(tty)
42
43
- name: Test and Build
44
if: ${{ !matrix.sonar-enabled }}
0 commit comments