From 9f45089fff82544a5d48677a78211d825754f8cb Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Thu, 2 May 2024 15:41:56 +0100 Subject: [PATCH] ci(java-sdk): handle gradle action deprecations --- .../.github/workflows/main.yaml.mustache | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/config/clients/java/template/.github/workflows/main.yaml.mustache b/config/clients/java/template/.github/workflows/main.yaml.mustache index a92cbfde..4d74a839 100644 --- a/config/clients/java/template/.github/workflows/main.yaml.mustache +++ b/config/clients/java/template/.github/workflows/main.yaml.mustache @@ -60,13 +60,14 @@ jobs: distribution: "temurin" - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2 + uses: gradle/actions/wrapper-validation@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2 - - name: Publish package + - name: Setup Gradle uses: gradle/actions/setup-gradle@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2 - with: - # Tasks created by https://github.com/gradle-nexus/publish-plugin - arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository + + # Tasks created by https://github.com/gradle-nexus/publish-plugin + - name: Publish package + run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} @@ -92,13 +93,14 @@ jobs: distribution: "temurin" - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2 + uses: gradle/actions/wrapper-validation@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2 - - name: Publish package + - name: Setup Gradle uses: gradle/actions/setup-gradle@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2 - with: - # Tasks created by https://docs.gradle.org/current/userguide/publishing_maven.html - arguments: publishAllPublicationsToGitHubPackagesRepository + + # Tasks created by https://docs.gradle.org/current/userguide/publishing_maven.html + - name: Publish package + run: ./gradlew publishAllPublicationsToGitHubPackagesRepository env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ORG_GRADLE_PROJECT_SIGNINGKEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}