This commit is contained in:
C10udburst 2022-08-04 09:23:17 +02:00
parent 95d272cacd
commit 2d8fde2091
2 changed files with 5 additions and 8 deletions

View file

@ -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 }}

View file

@ -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 {