Skip to content

Commit a8b5172

Browse files
author
ntwigg
committed
Go back to the old names for the GitHub Secrets (modify #2539)
1 parent 9b004d2 commit a8b5172

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# CENTRAL_PORTAL_USER
2-
# CENTRAL_PORTAL_PASS64 (base64 NOTE: `base64` and `openssl base64` failed, had to use Java
1+
# NEXUS_USER
2+
# NEXUS_PASS64 (base64 NOTE: `base64` and `openssl base64` failed, had to use Java
33
# byte[] data = "{{password}}".getBytes(StandardCharsets.UTF_8);
44
# String encoded = new String(Base64.getEncoder().encode(data), StandardCharsets.UTF_8);
55
# System.out.println(encoded);
@@ -32,8 +32,8 @@ jobs:
3232
contents: write
3333
env:
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
ORG_GRADLE_PROJECT_central_portal_user: ${{ secrets.CENTRAL_PORTAL_USER }}
36-
ORG_GRADLE_PROJECT_central_portal_pass64: ${{ secrets.CENTRAL_PORTAL_PASS64 }}
35+
ORG_GRADLE_PROJECT_nexus_user: ${{ secrets.NEXUS_USER }}
36+
ORG_GRADLE_PROJECT_nexus_pass64: ${{ secrets.NEXUS_PASS64 }}
3737
ORG_GRADLE_PROJECT_gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
3838
ORG_GRADLE_PROJECT_gpg_key64: ${{ secrets.GPG_KEY64 }}
3939
steps:

gradle/java-publish.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def decode64(String varName) {
1111

1212
if (project.parent == null) {
1313
group = 'com.diffplug.spotless'
14-
def pass = System.env['ORG_GRADLE_PROJECT_central_portal_pass64']
14+
def pass = System.env['ORG_GRADLE_PROJECT_nexus_pass64']
1515
if (pass != null) {
1616
pass = pass.decodeBase64()
1717
}
@@ -22,8 +22,8 @@ if (project.parent == null) {
2222
sonatype {
2323
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
2424
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
25-
username = System.env['ORG_GRADLE_PROJECT_central_portal_user']
26-
password = decode64('ORG_GRADLE_PROJECT_central_portal_pass64')
25+
username = System.env['ORG_GRADLE_PROJECT_nexus_user']
26+
password = decode64('ORG_GRADLE_PROJECT_nexus_pass64')
2727
}
2828
}
2929
}

0 commit comments

Comments
 (0)