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: | run: |
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 }}

View File

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