From bab8da3f3a704acc5b799720e298f290fd66f1b4 Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Sat, 4 Jan 2025 16:29:23 +0100 Subject: [PATCH] Update actions in gradle workflow --- .github/workflows/gradle.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 3b30e80a..12c9bb1d 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -6,16 +6,16 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: distribution: 'adopt' java-version: '17' - name: Validate gradlew integrity uses: gradle/wrapper-validation-action@v1 - name: Restore cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle') }} @@ -53,26 +53,26 @@ jobs: gpg --local-user "Violet Moon Signing Key" --armor \ --detach-sign ${{ steps.calculate_artifact_names.outputs.fabric }} - name: Archive Forge Jar - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Forge Jar path: | ${{ steps.calculate_artifact_names.outputs.forge }} - name: Archive Forge Signature - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: ${{ env.SIGNING_KEY != '' && startsWith(github.ref, 'refs/tags/release-')}} with: name: Forge Signature path: | ${{ steps.calculate_artifact_names.outputs.forge }}.asc - name: Archive Fabric Jar - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Fabric Jar path: | ${{ steps.calculate_artifact_names.outputs.fabric }} - name: Archive Fabric Signature - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: ${{ env.SIGNING_KEY != '' && startsWith(github.ref, 'refs/tags/release-')}} with: name: Fabric Signature