workflow: using gradle from $PATH, update cache usage
Some checks failed
Build / build (push) Has been cancelled
Some checks failed
Build / build (push) Has been cancelled
* use cache for default build * disable cache for release build
This commit is contained in:
parent
a6ede59d65
commit
4c3cccde87
4
.github/workflows/build.yaml
vendored
4
.github/workflows/build.yaml
vendored
@ -23,9 +23,11 @@ jobs:
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v3
|
||||
with:
|
||||
cache-read-only: false
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew build
|
||||
run: gradle build
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
|
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
@ -21,11 +21,13 @@ jobs:
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v3
|
||||
with:
|
||||
cache-disabled: true
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew build
|
||||
run: gradle build
|
||||
|
||||
- name: Upload to modrinth with Gradle
|
||||
run: ./gradlew modrinth
|
||||
run: gradle modrinth
|
||||
env:
|
||||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user