diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml index 9aeb2b8..7960a93 100644 --- a/.github/workflows/gradle-publish.yml +++ b/.github/workflows/gradle-publish.yml @@ -32,14 +32,14 @@ jobs: - name: Build with Gradle uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee with: - arguments: build + arguments: -Pversion=${{ github.event.release.tag_name }} build # 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 uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee with: - arguments: publish + arguments: -Pversion=${{ github.event.release.tag_name }} publish env: USERNAME: ${{ github.actor }} TOKEN: ${{ secrets.GITHUB_TOKEN }}