File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 57
57
ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.MAVEN_CENTRAL_USERNAME }}
58
58
ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
59
59
# GPG signing configuration
60
- ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.GPG_KEY_CONTENTS }}
61
60
ORG_GRADLE_PROJECT_signingInMemoryKeyId : ${{ secrets.SIGNING_KEY_ID }}
62
61
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.SIGNING_PASSWORD }}
63
62
71
70
- name : Validate Gradle Wrapper
72
71
uses : gradle/actions/wrapper-validation@v3
73
72
73
+ # This assumes the GPG key is stored as a base64-encoded string in the secret
74
+ - name : Set up GPG key
75
+ env :
76
+ GPG_KEY_CONTENTS : ${{ secrets.GPG_KEY_CONTENTS }}
77
+ run : |
78
+ echo "$GPG_KEY_CONTENTS" | base64 -d > /tmp/gpg_key.asc
79
+ echo "ORG_GRADLE_PROJECT_signingInMemoryKey=$(cat /tmp/gpg_key.asc)" >> $GITHUB_ENV
80
+ rm /tmp/gpg_key.asc
81
+
74
82
- name : Cache Gradle and Konan
75
83
uses : actions/cache@v4
76
84
with :
You can’t perform that action at this time.
0 commit comments