diff --git a/.github/workflows/android-publish.yml b/.github/workflows/android-publish.yml index 8828948..ef4fee6 100644 --- a/.github/workflows/android-publish.yml +++ b/.github/workflows/android-publish.yml @@ -22,4 +22,6 @@ jobs: - name: Build run: ./gradlew build - name: Publish - run: ./gradlew publish \ No newline at end of file + run: ./gradlew publish + env: + GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} \ No newline at end of file diff --git a/kttestexpectation/build.gradle b/kttestexpectation/build.gradle index dd9114c..2f85a56 100644 --- a/kttestexpectation/build.gradle +++ b/kttestexpectation/build.gradle @@ -75,8 +75,8 @@ publishing { name = "GitHubPackages" url = uri("https://maven.pkg.github.com/danielepantaleone/KTTestExpectation") credentials { - username = System.getenv("GP_USR") - password = System.getenv("GP_KEY") + username = 'danielepantaleone' + password = System.getenv("GITHUB_TOKEN") } } }