diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a7cd0dee..fbdbb92f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,14 +17,13 @@ jobs: uses: actions/setup-java@v4 with: java-version: '22' - distribution: 'adopt' + distribution: 'temurin' - name: Setup Gradle uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 - - # 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: ./gradlew publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_ACTOR: ${{ github.actor }}