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

@ -19,3 +19,5 @@ jobs:
chmod +x gradlew
./gradlew :publish -Pversion=${GITHUB_REF##*/}-SNAPSHOT
./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 {