Skip to content

Commit 5384775

Browse files
committed
🤦
1 parent fc07cdd commit 5384775

File tree

3 files changed

+8
-22
lines changed

3 files changed

+8
-22
lines changed

‎.github/workflows/build_and_publish.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
java-version: '8'
2828
- name: Build with Gradle
2929
env:
30-
ORG_GRADLE_PROJECT_OSSRH_USERNAME: Bearer ${{ secrets.OSSRH_USERNAME }}
31-
ORG_GRADLE_PROJECT_OSSRH_PASSWORD: Bearer ${{ secrets.OSSRH_PASSWORD }}
30+
ORG_GRADLE_PROJECT_OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
31+
ORG_GRADLE_PROJECT_OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
3232
ORG_GRADLE_PROJECT_mainAuthHeaderName: Authorization
3333
ORG_GRADLE_PROJECT_mainAuthHeaderValue: Bearer ${{ secrets.CENTRAL_AUTH_TOKEN }}
3434
run: ./gradlew build publish

‎CubicChunksAPI/build.gradle.kts‎

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -241,16 +241,9 @@ publishing {
241241

242242
setUrl(if (local) localUrl else if (doRelease.toBoolean()) releasesRepoUrl else snapshotsRepoUrl)
243243
if (!local) {
244-
if (doRelease.toBoolean()) {
245-
credentials {
246-
username = ossrhMavenUsername
247-
password = ossrhMavenPassword
248-
}
249-
} else {
250-
credentials(HttpHeaderCredentials::class)
251-
authentication {
252-
create<HttpHeaderAuthentication>("header")
253-
}
244+
credentials {
245+
username = ossrhMavenUsername
246+
password = ossrhMavenPassword
254247
}
255248
}
256249
}

‎build.gradle.kts‎

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -414,16 +414,9 @@ publishing {
414414

415415
setUrl(if (local) localUrl else if (doRelease.toBoolean()) releasesRepoUrl else snapshotsRepoUrl)
416416
if (!local) {
417-
if (doRelease.toBoolean()) {
418-
credentials {
419-
username = ossrhMavenUsername
420-
password = ossrhMavenPassword
421-
}
422-
} else {
423-
credentials(HttpHeaderCredentials::class)
424-
authentication {
425-
create<HttpHeaderAuthentication>("header")
426-
}
417+
credentials {
418+
username = ossrhMavenUsername
419+
password = ossrhMavenPassword
427420
}
428421
}
429422
}

0 commit comments

Comments
 (0)