From bacd8ca13bb9b90231720b4e41c62be1e24574d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20Demirta=C5=9F?= Date: Tue, 27 Aug 2024 08:07:36 +0300 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9cdc56a..307be86 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,16 +17,12 @@ jobs: java-version: "11" - uses: "actions/cache@master" with: - path: "~/.gradle/caches" - key: "${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle.kts') }}" + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} restore-keys: | ${{ runner.os }}-gradle- - - uses: "actions/cache@master" - with: - path: "~/.gradle/wrapper" - key: "${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle-wrapper.properties') }}" - restore-keys: | - ${{ runner.os }}-gradlew- - run: | [[ "${{ github.event.release.tag_name }}" =~ ^[0-9]+(\.[0-9]+)*$ ]] || exit -1 chmod +x gradlew