From fe0eeea7154973a86b7e086717efb2ba1db1fcc5 Mon Sep 17 00:00:00 2001 From: Krakenied Date: Wed, 13 Mar 2024 19:50:26 +0100 Subject: Update workflows actions Use actions/setup-java@v4 for caching --- .github/workflows/build.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to '.github/workflows/build.yml') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 35ade269..18ea0893 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,19 +19,15 @@ jobs: with: distribution: "${{ matrix.distribution }}" java-version: "${{ matrix.java-version }}" - - name: "Cache: ~/.gradle/caches, ~/.gradle/wrapper" - uses: actions/cache@v3 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle- + cache: gradle + cache-dependency-path: | + **/*.gradle* + **/gradle-wrapper.properties - name: Build with Gradle - run: ./gradlew + run: ./gradlew build --no-daemon --stacktrace - name: Upload the plugin JAR - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "Quests-JDK${{ matrix.java-version }}" path: build/libs/*.jar + if-no-files-found: error -- cgit v1.2.3-70-g09d2