mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2024-11-16 05:42:18 +08:00
Migrate to gradle/actions/setup-gradle@v4 (#293)
https://github.com/gradle/actions/releases/tag/v4.0.0 https://github.com/gradle/actions/blob/main/setup-gradle/README.md
This commit is contained in:
parent
c82acb38d5
commit
b661d94278
8
.github/workflows/build-debug.yaml
vendored
8
.github/workflows/build-debug.yaml
vendored
|
@ -20,6 +20,9 @@ jobs:
|
|||
distribution: 'zulu'
|
||||
java-version: 17
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
|
@ -50,10 +53,7 @@ jobs:
|
|||
|
||||
- name: Build
|
||||
if: success()
|
||||
uses: gradle/gradle-build-action@v3
|
||||
with:
|
||||
arguments: --no-daemon app:assembleMeta-AlphaRelease
|
||||
|
||||
run: ./gradlew --no-daemon app:assembleMeta-AlphaRelease
|
||||
|
||||
- name: Upload Aritfact (universal)
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
7
.github/workflows/build-pre-release.yaml
vendored
7
.github/workflows/build-pre-release.yaml
vendored
|
@ -22,6 +22,9 @@ jobs:
|
|||
distribution: 'zulu'
|
||||
java-version: 17
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
|
@ -52,9 +55,7 @@ jobs:
|
|||
|
||||
- name: Pre-release Build
|
||||
if: success()
|
||||
uses: gradle/gradle-build-action@v3
|
||||
with:
|
||||
arguments: --no-daemon app:assembleMeta-AlphaRelease
|
||||
run: ./gradlew --no-daemon app:assembleMeta-AlphaRelease
|
||||
|
||||
# Delete old Prerelease-alpha
|
||||
- uses: dev-drprasad/delete-tag-and-release@v1.1
|
||||
|
|
7
.github/workflows/build-release.yaml
vendored
7
.github/workflows/build-release.yaml
vendored
|
@ -25,6 +25,9 @@ jobs:
|
|||
distribution: 'zulu'
|
||||
java-version: 17
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
|
@ -90,9 +93,7 @@ jobs:
|
|||
|
||||
- name: Release Build
|
||||
if: success()
|
||||
uses: gradle/gradle-build-action@v3
|
||||
with:
|
||||
arguments: --no-daemon app:assembleMetaRelease
|
||||
run: ./gradlew --no-daemon app:assembleMetaRelease
|
||||
|
||||
- name: Tag Repo
|
||||
uses: richardsimko/update-tag@v1
|
||||
|
|
Loading…
Reference in New Issue
Block a user