File tree 3 files changed +7
-11
lines changed
3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,14 @@ jobs:
11
11
- name : Get tag
12
12
id : tag
13
13
run : echo "::set-output name=version::${GITHUB_REF/refs\/tags\/v/}"
14
- - id : install-secret-key
15
- name : Install gpg secret key
16
- run : |
17
- echo "${{ secrets.PGP_SECRET }}" | base64 -d | gpg --batch --import
18
- export GPG_TTY=$(tty || echo "")
19
- gpg --list-secret-keys --keyid-format SHORT
20
14
- uses : actions/setup-java@v2
21
15
with :
22
16
java-version : ' 8'
23
17
distribution : ' adopt'
24
18
- name : Publish ${{ github.ref }}
25
- run : ./gradlew -Pversion=${{ steps.tag.outputs.version }} -Psigning.password=${{ secrets.PGP_PASSPHRASE }} publish
19
+ run : ./gradlew -Pversion=${{ steps.tag.outputs.version }} publish
26
20
env :
27
21
SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
28
22
SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
23
+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.PGP_SECRET }}
24
+ ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.PGP_PASSPHRASE }}
Original file line number Diff line number Diff line change 1
1
kotlin.code.style =official
2
2
org.gradle.parallel =true
3
- org.gradle.caching =true
4
- signing.gnupg.keyName =EF0E44A9
5
- signing.gnupg.executable =gpg
3
+ org.gradle.caching =true
Original file line number Diff line number Diff line change @@ -112,7 +112,9 @@ publishing {
112
112
}
113
113
114
114
signing {
115
- useGpgCmd()
115
+ val signingKey: String? by project
116
+ val signingPassword: String? by project
117
+ useInMemoryPgpKeys(signingKey, signingPassword)
116
118
sign(publishing.publications[" shadow" ])
117
119
}
118
120
You can’t perform that action at this time.
0 commit comments