File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,16 @@ jobs:
25
25
id : get_version
26
26
run : echo ::set-output name=VERSION::$(gradle properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}')
27
27
28
+ - name : Decode
29
+ run : |
30
+ echo "${{secrets.SIGNING_SECRET_KEY_RING_FILE}}" > ~/.gradle/secring.gpg.b64
31
+ base64 -d ~/.gradle/secring.gpg.b64 > ~/.gradle/secring.gpg
32
+
28
33
- name : Publish Release to Sonatype
29
34
uses : gradle/gradle-build-action@v2
30
35
with :
31
36
gradle-version : 7.4
32
- arguments : assemble publish -PossrhUsername=${{secrets.SONATYPE_NEXUS_USERNAME}} -PossrhPassword=${{secrets.SONATYPE_NEXUS_PASSWORD}} --stacktrace
37
+ arguments : assemble publish -Psigning.keyId=${{secrets.SIGNING_KEY_ID}} -Psigning.password=${{secrets.SIGNING_PASSWORD}} -Psigning.secretKeyRingFile=$(echo ~/.gradle/secring.gpg) - PossrhUsername=${{secrets.SONATYPE_NEXUS_USERNAME}} -PossrhPassword=${{secrets.SONATYPE_NEXUS_PASSWORD}} --stacktrace
33
38
34
39
- name : Create Release in Github
35
40
uses : actions/create-release@latest
You can’t perform that action at this time.
0 commit comments