Skip to content

Commit ae3a49e

Browse files
committed
~ Use base64-to-file to extract the
1 parent f028d35 commit ae3a49e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish-to-maven-central.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ jobs:
1818
java-version: 11
1919
- name: Grant execute permission for gradlew
2020
run: chmod +x gradlew
21-
- name: Extract keyring
22-
run: |
23-
echo "${{secrets.SIGNING_SECRET_KEY_RING_FILE}}" > secring.gpg.b64
24-
base64 -d secring.gpg.b64 > secring.gpg
21+
- name: Run Workflow
22+
uses: timheuer/base64-to-file@v1
23+
with:
24+
fileName: 'secring.gpg'
25+
fileDir: .
26+
encodedString: ${{secrets.SIGNING_SECRET_KEY_RING_FILE}}
2527
- name: Publish
2628
uses: gradle/gradle-build-action@v2
2729
with:

0 commit comments

Comments
 (0)