Skip to content

Commit 178814b

Browse files
committed
yet another sign plugin fix
1 parent 16737fb commit 178814b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ jobs:
2323
with:
2424
servers: '[{"id": "ossrh", "username": "${{secrets.OSSRH_USERNAME}}", "password": "${{secrets.OSSRH_PASSWORD}}"}]'
2525

26+
- name: Set up GPG
27+
run: |
28+
export GPG_TTY=$(tty)
29+
echo -n "${GPG_PRIVATE_KEY}" | base64 --decode | gpg --batch --import
30+
env:
31+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
32+
2633
- name: "Maven Build"
2734
run: ./mvnw -Dinvoker.skip=true install
2835

@@ -33,7 +40,6 @@ jobs:
3340
env:
3441
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
3542
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
36-
MAVEN_GPG_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
3743

3844
- name: "Sonatype Release"
3945
uses: fjogeleit/http-request-action@v1

0 commit comments

Comments
 (0)