From 01532863f60498860fb47d5760cf09a70ea74c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20Demirta=C5=9F?= Date: Tue, 27 Aug 2024 08:03:07 +0300 Subject: [PATCH] Update build.yml (#134) * Update build.yml * Update release.yml * Update build.yml * Update release.yml --- .github/workflows/build.yml | 14 +++++--------- .github/workflows/release.yml | 14 +++++--------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a7bcea..4d58631 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,18 +14,14 @@ jobs: with: distribution: "adopt" java-version: "11" - - uses: "actions/cache@v4" + - 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@v4" - with: - path: "~/.gradle/wrapper" - key: "${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle-wrapper.properties') }}" - restore-keys: | - ${{ runner.os }}-gradlew- - run: | chmod +x gradlew ./gradlew build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e5a0f7..761c5a5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,18 +14,14 @@ jobs: with: distribution: "adopt" java-version: "11" - - uses: "actions/cache@v4" + - 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@v4" - 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