Skip to content

Commit

Permalink
ci(java-sdk): handle gradle action deprecations (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris authored May 7, 2024
2 parents 1c85548 + 9f45089 commit 692e5a6
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions config/clients/java/template/.github/workflows/main.yaml.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 692e5a6

Please sign in to comment.