From 59e25d51d9cb8d72f27e9d84f92747e30f14a14d Mon Sep 17 00:00:00 2001 From: Andrew Brower Date: Tue, 24 Sep 2024 21:46:08 +0000 Subject: [PATCH] fix(ci): use correct github credentials --- .github/workflows/main.yml | 5 +++-- build.gradle | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6761f17..9345eb9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,8 +32,9 @@ jobs: ./gradlew clean build - name: Publish Release to Github Package Registry - run: | - ./gradlew publish + run: ./gradlew publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} Documentation: runs-on: ubuntu-latest diff --git a/build.gradle b/build.gradle index 4109e78..089dd7f 100644 --- a/build.gradle +++ b/build.gradle @@ -100,8 +100,8 @@ subprojects { url = "https://maven.pkg.github.com/xoogware/mccoroutine" credentials { - username = project.hasProperty("gpr.user") ? project.findProperty("gpr.user") : System.getenv("USERNAME") - password = project.hasProperty("gpr.key") ? project.findProperty("gpr.key") : System.getenv("TOKEN") + username = project.hasProperty("gpr.user") ? project.findProperty("gpr.user") : System.getenv("GITHUB_ACTOR") + password = project.hasProperty("gpr.key") ? project.findProperty("gpr.key") : System.getenv("GITHUB_TOKEN") } } }