From 514247182a4f2b9ff2894718227891cefb377229 Mon Sep 17 00:00:00 2001 From: wysohn Date: Sun, 15 Mar 2020 03:47:21 -0700 Subject: [PATCH] Inconsistent environmental variable name https://help.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-gradle-for-use-with-github-packages In the example above, the Gradle code tries to get the token value from the `TOKEN`, yet this workflow saves the token in the `PASSWORD`. Easy fix yet can save lots of time for newcomers. --- ci/gradle-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/gradle-publish.yml b/ci/gradle-publish.yml index 38b3656..cec487e 100644 --- a/ci/gradle-publish.yml +++ b/ci/gradle-publish.yml @@ -24,10 +24,10 @@ jobs: - name: Build with Gradle run: gradle build - # The USERNAME and PASSWORD need to correspond to the credentials environment variables used in + # The USERNAME and TOKEN need to correspond to the credentials environment variables used in # the publishing section of your build.gradle - name: Publish to GitHub Packages run: gradle publish env: USERNAME: ${{ github.actor }} - PASSWORD: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + TOKEN: ${{ secrets.GITHUB_TOKEN }}