Skip to content

Commit 9091e90

Browse files
add: workflow for publishing to maven central
1 parent cb51049 commit 9091e90

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,14 @@ jobs:
4747
- name: Add signing password to gradle.proeprties
4848
run: echo "signing.password=${{ secrets.OSS_SIGNING_PASSWORD }}" >> gradle.properties
4949

50-
- name: Copy secret file content to a new file
51-
run: printf "${{ secrets.SECRET_FILE_CONTENT }}" >> secring.gpg
50+
- name: Decode and set up GPG secring file
51+
env:
52+
GPG_SECRET_RING: ${{ secrets.SECRET_FILE_CONTENT }}
53+
run: |
54+
echo "$GPG_SECRET_RING" | base64 --decode > ~/.gnupg/secring.gpg
5255
5356
- name: Add secret file loc to gradle.properties
54-
run: echo "signing.secretKeyRingFile=secring.gpg"
57+
run: echo "signing.secretKeyRingFile=~/.gnupg/secring.gpg"
5558

5659

5760
- name: Echo gradle.properties

0 commit comments

Comments
 (0)