mirror of
https://github.com/recloudstream/gradle.git
synced 2024-08-14 23:56:59 +00:00
token
This commit is contained in:
parent
95d272cacd
commit
2d8fde2091
2 changed files with 5 additions and 8 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -19,3 +19,5 @@ jobs:
|
||||||
chmod +x gradlew
|
chmod +x gradlew
|
||||||
./gradlew :publish -Pversion=${GITHUB_REF##*/}-SNAPSHOT
|
./gradlew :publish -Pversion=${GITHUB_REF##*/}-SNAPSHOT
|
||||||
./gradlew :publish -Pversion=$(git rev-parse --short "$GITHUB_SHA")
|
./gradlew :publish -Pversion=$(git rev-parse --short "$GITHUB_SHA")
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
|
@ -42,15 +42,10 @@ gradlePlugin {
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
val username = System.getenv("USERNAME")
|
val token = System.getenv("GITHUB_TOKEN")
|
||||||
val password = System.getenv("TOKEN")
|
|
||||||
|
|
||||||
if (username != null && password != null) {
|
if (token != null) {
|
||||||
maven {
|
maven {
|
||||||
credentials {
|
|
||||||
this.username = username
|
|
||||||
this.password = password
|
|
||||||
}
|
|
||||||
setUrl("https://maven.pkg.github.com/recloudstream/gradle")
|
setUrl("https://maven.pkg.github.com/recloudstream/gradle")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue