diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e10ffc9..166b4fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,4 +18,6 @@ jobs: run: | chmod +x gradlew ./gradlew :publish -Pversion=${GITHUB_REF##*/}-SNAPSHOT - ./gradlew :publish -Pversion=$(git rev-parse --short "$GITHUB_SHA") \ No newline at end of file + ./gradlew :publish -Pversion=$(git rev-parse --short "$GITHUB_SHA") + env: + GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index ff01296..a0f92e5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 {