Skip to content

Commit a7cf0d2

Browse files
committed
Use ASCII-armored private key
1 parent 81290c1 commit a7cf0d2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v2
23-
- name: Prepare GPG signing
24-
env:
25-
GPG_KEY_CONTENTS: ${{ secrets.GPG_KEY_CONTENTS }}
26-
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.GPG_SIGNING_SECRET_KEY_RING_FILE }}
27-
run: sudo bash -c "echo '$GPG_KEY_CONTENTS' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"
2823
- name: Setup Maven Central
2924
uses: actions/setup-java@v2
3025
with:
@@ -33,7 +28,7 @@ jobs:
3328
server-id: ossrh
3429
server-username: MAVEN_USERNAME
3530
server-password: MAVEN_PASSWORD
36-
gpg-private-key: ${{ secrets.GPG_SIGNING_SECRET_KEY_RING_FILE }}
31+
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
3732
gpg-passphrase: GPG_PASSPHRASE
3833
- name: Publish release
3934
run: bash github-build.sh

0 commit comments

Comments
 (0)