Skip to content

Commit fea22d7

Browse files
committed
Replace manual caching and wrapper-validation with setup-gradle action
1 parent d004f9f commit fea22d7

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/publish-to-github-pages.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,10 @@ jobs:
1818
with:
1919
java-version: '17'
2020
distribution: 'temurin'
21-
cache: gradle
22-
- name: Validate Gradle wrapper
23-
uses: gradle/wrapper-validation-action@85cde3f5a1033b2adc2442631c24b530f1183a1a
21+
- name: Setup Gradle
22+
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808
2423
- name: Build with Gradle
2524
run: ./gradlew makePages
26-
- name: Cleanup Gradle Cache
27-
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
28-
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
29-
run: |
30-
rm -f ~/.gradle/caches/modules-2/modules-2.lock
31-
rm -f ~/.gradle/caches/modules-2/gc.properties
32-
rm -fr ~/.gradle/caches/*/plugin-resolution/
33-
find ~/.gradle/caches/ -name "*.lock" -type f -delete
3425
- name: Pages artifact
3526
uses: actions/upload-artifact@v4
3627
with:

0 commit comments

Comments
 (0)