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
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -18,4 +18,6 @@ jobs:
|
|||
run: |
|
||||
chmod +x gradlew
|
||||
./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 {
|
||||
repositories {
|
||||
val username = System.getenv("USERNAME")
|
||||
val password = System.getenv("TOKEN")
|
||||
val token = System.getenv("GITHUB_TOKEN")
|
||||
|
||||
if (username != null && password != null) {
|
||||
if (token != null) {
|
||||
maven {
|
||||
credentials {
|
||||
this.username = username
|
||||
this.password = password
|
||||
}
|
||||
setUrl("https://maven.pkg.github.com/recloudstream/gradle")
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue