Skip to content

Commit abdd9fd

Browse files
Sign artifacts in build pipeline
1 parent aa0df7f commit abdd9fd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,14 @@ jobs:
3131
server-id: central
3232
server-username: MAVEN_USERNAME
3333
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
34+
35+
- 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)
3642

3743
- name: Test and Build
3844
if: ${{ !matrix.sonar-enabled }}

0 commit comments

Comments
 (0)