Skip to content

Commit cfbc299

Browse files
committed
ci(github): use gradle/actions/setup-gradle@v3
1 parent 2df2d0c commit cfbc299

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ jobs:
99
build:
1010

1111
runs-on: ubuntu-latest
12-
permissions:
13-
contents: write
14-
packages: write
1512

1613
steps:
1714
- uses: actions/checkout@v3
@@ -23,10 +20,14 @@ jobs:
2320
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
2421
settings-path: ${{ github.workspace }} # location for the settings.xml file
2522

26-
- name: Build with Gradle
27-
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
23+
- name: Set up Gradle
24+
uses: gradle/actions/setup-gradle@v3
2825
with:
29-
arguments: build
26+
validate-wrappers: true
27+
build-scan-publish: true
28+
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
29+
build-scan-terms-of-use-agree: "yes"
30+
31+
- name: Run build
32+
run: ./gradlew build --scan
3033

31-
- name: Run snapshot action
32-
uses: mikepenz/gradle-dependency-submission@v0.8.6

0 commit comments

Comments
 (0)