diff options
Diffstat (limited to '.github/workflows')
| -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/" |
