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 | |
| parent | 17f88db09fc85f2469095524fb9c4475f21669fc (diff) | |
Update workflows actions
Use actions/setup-java@v4 for caching
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build.yml | 18 | ||||
| -rw-r--r-- | .github/workflows/docs.yml | 6 |
2 files changed, 10 insertions, 14 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 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/" |
