Skip to content

Commit

Permalink
chore(main): Handle arguments deprecation of setup-gradle action (#583)
Browse files Browse the repository at this point in the history
Exchange the usage of the arguments parameter within the setup-gradle
action with the Gradle Wrapper.
  • Loading branch information
HorizonNet authored Jul 4, 2024
1 parent bbf42fc commit 5b8ce38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,11 @@ jobs:
server-id: github
settings-path: ${{ github.workspace }}

- name: Build with Gradle
- name: Setup Gradle Gradle
uses: gradle/actions/[email protected]
with:
arguments: build

- name: Build with Gradle
run: ./gradlew build

- name: Publish to GitHub Packages
uses: gradle/actions/[email protected]
with:
arguments: publish
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew publish
7 changes: 4 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
java-version-file: .java-version
distribution: 'temurin'

- name: Build with Gradle
- name: Setup Gradle Gradle
uses: gradle/actions/[email protected]
with:
arguments: build

- name: Build with Gradle
run: ./gradlew build

0 comments on commit 5b8ce38

Please sign in to comment.