Simplify cache in action workflows (#1359)
* Simplify `build-on-pr` workflow * Simplify `devbuild` workflow * Simplify `publish-release` action
This commit is contained in:
1 parent
9a804d546c
commit
6ebef9b41d
3 files changed
+4
-24
No files matched your search
@@ -70,12 +70,7 @@ jobs:
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 17
|
||||
- name: Cache Gradle packages
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/caches
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
||||
restore-keys: ${{ runner.os }}-gradle
|
||||
cache: 'gradle'
|
||||
- name: Grant execute permission to gradlew
|
||||
run: chmod +x gradlew
|
||||
- name: Build with Gradle
|
||||
@@ -145,12 +140,7 @@ jobs:
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 17
|
||||
- name: Cache Gradle packages
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/caches
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
||||
restore-keys: ${{ runner.os }}-gradle
|
||||
cache: 'gradle'
|
||||
- name: Replace fabric.mod.json
|
||||
run: |
|
||||
cd src/main/resources
|
||||
|
||||
Reference in new issue
Block a user