Use header auth
Build & Release / release-library (push) Failing after 1m10s
Details
Build & Release / release-library (push) Failing after 1m10s
Details
This commit is contained in:
parent
43c5192bbf
commit
018682fcea
|
@ -8,8 +8,7 @@ env:
|
||||||
ORG_GRADLE_PROJECT_BUILD_VERSION: ${{ gitea.ref_name }}
|
ORG_GRADLE_PROJECT_BUILD_VERSION: ${{ gitea.ref_name }}
|
||||||
ORG_GRADLE_PROJECT_DEVSOAP_GPG_KEY: ${{ secrets.GPG_DEVSOAP_PRIVATE_KEY }}
|
ORG_GRADLE_PROJECT_DEVSOAP_GPG_KEY: ${{ secrets.GPG_DEVSOAP_PRIVATE_KEY }}
|
||||||
ORG_GRADLE_PROJECT_DEVSOAP_GPG_PASSWORD: ${{ secrets.GPG_DEVSOAP_PASSPHRASE }}
|
ORG_GRADLE_PROJECT_DEVSOAP_GPG_PASSWORD: ${{ secrets.GPG_DEVSOAP_PASSPHRASE }}
|
||||||
ORG_GRADLE_PROJECT_SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
|
ORG_GRADLE_PROJECT_SONATYPE_TOKEN: ${{ secrets.SONATYPE_TOKEN }}
|
||||||
ORG_GRADLE_PROJECT_SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
|
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
@ -42,9 +42,12 @@ publishing {
|
||||||
maven {
|
maven {
|
||||||
name = "sonatype"
|
name = "sonatype"
|
||||||
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
|
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
|
||||||
credentials {
|
credentials(HttpHeaderCredentials) {
|
||||||
username = findProperty('SONATYPE_USER') as String
|
name = "Authorization"
|
||||||
password = findProperty('SONATYPE_PASSWORD') as String
|
value = "Bearer ${ findProperty('SONATYPE_TOKEN') as String }"
|
||||||
|
}
|
||||||
|
authentication {
|
||||||
|
create("header")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue