diff options
| author | Krakenied <Krakenied1@gmail.com> | 2024-03-13 19:50:26 +0100 |
|---|---|---|
| committer | Leonardo Bishop <13875753+LMBishop@users.noreply.github.com> | 2024-03-16 00:18:37 +0000 |
| commit | fe0eeea7154973a86b7e086717efb2ba1db1fcc5 (patch) | |
| tree | 0321b90267353bdf3410fee82d684c75944ae6c3 /.github/workflows/build.yml | |
| parent | 17f88db09fc85f2469095524fb9c4475f21669fc (diff) | |
Update workflows actions
Use actions/setup-java@v4 for caching
Diffstat (limited to '.github/workflows/build.yml')
| -rw-r--r-- | .github/workflows/build.yml | 18 |
1 files changed, 7 insertions, 11 deletions
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 |
