Skip to content

Commit

Permalink
add: workflow for publishing to maven central
Browse files Browse the repository at this point in the history
  • Loading branch information
devi-krishna-kv committed Jun 14, 2024
1 parent cb51049 commit 9091e90
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,14 @@ jobs:
- name: Add signing password to gradle.proeprties
run: echo "signing.password=${{ secrets.OSS_SIGNING_PASSWORD }}" >> gradle.properties

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


- name: Echo gradle.properties
Expand Down

0 comments on commit 9091e90

Please sign in to comment.