Skip to content

Commit 844d07e

Browse files
add: workflow for publishing to maven central
1 parent 0fdadbd commit 844d07e

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ jobs:
3434
- name: Set up GPG
3535
uses: olafurpg/setup-gpg@v3
3636

37+
- name: Import GPG
38+
uses: crazy-max/ghaction-import-gpg@v6
39+
with:
40+
gpg_private_key: ${{ secrets.OSS_SIGNING_KEY_ID }}
41+
passphrase: ${{ secrets.OSS_SIGNING_PASSWORD }}
42+
3743
# Step to grant execute permissions to the Gradle wrapper script
3844
- name: Grant execute permission for gradlew
3945
run: chmod +x gradlew
@@ -53,11 +59,11 @@ jobs:
5359
- name: create secring.gpg file
5460
run: gpg --export-secret-keys -o secring.gpg
5561

56-
- name: Decode and set up GPG secring file
57-
env:
58-
GPG_SECRET_RING: ${{ secrets.SECRET_FILE_CONTENT }}
59-
run: |
60-
echo "$GPG_SECRET_RING" >> secring.gpg
62+
# - name: Decode and set up GPG secring file
63+
# env:
64+
# GPG_SECRET_RING: ${{ secrets.SECRET_FILE_CONTENT }}
65+
# run: |
66+
# echo "$GPG_SECRET_RING" >> secring.gpg
6167

6268
- name: Add secret file loc to gradle.properties
6369
run: echo "signing.secretKeyRingFile=secring.gpg" >> gradle.properties

0 commit comments

Comments
 (0)