Skip to content

Commit 63f9078

Browse files
committed
remove line feed fiddling of sign key
1 parent 4ed812a commit 63f9078

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
- name: publish snapshot
7676
env:
7777
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78-
SIGN_KEY: ${{ secrets.SIGN_KEY }}
78+
SIGN_KEY: ${{ secrets.SIGN_KEY_ORG }}
7979
SIGN_PWD: ${{ secrets.SIGN_PWD }}
8080
PUBLISH_USER: ${{ secrets.PUBLISH_USER }}
8181
PUBLISH_KEY: ${{ secrets.PUBLISH_KEY }}

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
env:
3131
PUBLISH_USER: ${{ secrets.PUBLISH_USER }}
3232
PUBLISH_KEY: ${{ secrets.PUBLISH_KEY }}
33-
SIGN_KEY: ${{ secrets.SIGN_KEY }}
33+
SIGN_KEY: ${{ secrets.SIGN_KEY_ORG }}
3434
SIGN_PWD: ${{ secrets.SIGN_PWD }}
3535
run: |
3636
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository

gradle/publishing.gradle

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ configure(project.rootProject) {
33
publishUser = getBuildProperty ('PUBLISH_USER')
44
publishKey = getBuildProperty ('PUBLISH_KEY')
55

6-
signKey = getBuildSignKey ('SIGN_KEY')
6+
signKey = getBuildProperty ('SIGN_KEY')
77
signPwd = getBuildProperty ('SIGN_PWD')
88

99
isReleaseVersion = !version.endsWith("SNAPSHOT")
@@ -85,8 +85,3 @@ nexusPublishing {
8585
String getBuildProperty(String property) {
8686
project.findProperty (property) ?: System.getenv (property) ?: 'n/a'
8787
}
88-
89-
String getBuildSignKey(String property) {
90-
project.findProperty (property) ?: System.getenv (property) ?
91-
System.getenv (property).replace("\\n", "\n"): 'n/a'
92-
}

0 commit comments

Comments
 (0)