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 +++++++----------- .github/workflows/docs.yml | 6 +++--- 2 files changed, 10 insertions(+), 14 deletions(-) (limited to '.github') 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 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index bb29c86e..5d404047 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -27,7 +27,7 @@ jobs: working-directory: docs steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Ruby uses: ruby/setup-ruby@v1 with: @@ -37,7 +37,7 @@ jobs: working-directory: '${{ github.workspace }}/docs' - name: Setup Pages id: pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: Build with Jekyll # Outputs to the './_site' directory by default run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" @@ -45,7 +45,7 @@ jobs: JEKYLL_ENV: production - name: Upload artifact # Automatically uploads an artifact from the './_site' directory by default - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: "docs/_site/" -- cgit v1.2.3-70-g09d2