Skip to content

Commit 4e5455a

Browse files
committed
chore: update actions in publish.yml to use version 5 and simplify caching configuration
1 parent b668269 commit 4e5455a

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,19 @@ jobs:
2222
uses: catchpoint/workflow-telemetry-action@v2
2323

2424
- name: Checkout Repository
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v5
2626
with:
2727
fetch-depth: 0
2828

29-
- name: Cache Gradle packages
30-
uses: actions/cache@v3
31-
with:
32-
path: |
33-
~/.gradle/caches
34-
~/.gradle/wrapper
35-
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
36-
restore-keys: gradle-${{ runner.os }}-
37-
3829
- name: Setup JDK
39-
uses: actions/setup-java@v4
30+
uses: actions/setup-java@v5
4031
with:
4132
distribution: 'graalvm'
4233
java-version: '25'
34+
cache: 'gradle'
35+
cache-dependency-path: |
36+
**/*.gradle*
37+
**/gradle-wrapper.properties
4338
4439
- name: Build all modules with Gradle
4540
run: ./gradlew build shadowJar --parallel --no-scan

0 commit comments

Comments
 (0)