Skip to content

Commit da59419

Browse files
committed
Use setup-gradle@v4 actions
1 parent 8d77a67 commit da59419

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ jobs:
3131
distribution: 'temurin'
3232
java-version: '21'
3333

34+
- name: Setup Gradle
35+
uses: gradle/actions/setup-gradle@v4
36+
3437
- name: Publish with Gradle
35-
uses: gradle/gradle-build-action@v3
36-
with:
37-
arguments: publish
38+
run: ./gradlew publish
3839

3940
- name: Confirm publishing
4041
run: curl -X POST -u "${{ secrets.MAVEN_USERNAME }}:${{ secrets.MAVEN_PASSWORD }}" "https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/io.github.nsk90"

.github/workflows/gradle.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ jobs:
2424
distribution: 'temurin'
2525
java-version: '21'
2626

27+
- name: Setup Gradle
28+
uses: gradle/actions/setup-gradle@v4
29+
2730
- name: Build with Gradle
28-
uses: gradle/gradle-build-action@v3
29-
with:
30-
arguments: build
31+
run: ./gradlew build
3132

3233
- name: Codecov
3334
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)