mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 11:42:22 +08:00
chore: Update Gradle setup to version 4 in Build-Apk.yml and Build-Release.yml workflows
Some checks are pending
Build-Apk / build (push) Waiting to run
Some checks are pending
Build-Apk / build (push) Waiting to run
This commit is contained in:
parent
39fd831853
commit
99d1df8b04
3
.github/workflows/Build-Apk.yml
vendored
3
.github/workflows/Build-Apk.yml
vendored
|
@ -23,10 +23,9 @@ jobs:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
|
|
||||||
- uses: gradle/actions/setup-gradle@v3
|
- uses: gradle/actions/setup-gradle@v4
|
||||||
with:
|
with:
|
||||||
cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
|
cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
|
||||||
gradle-home-cache-cleanup: true
|
|
||||||
|
|
||||||
- name: write secrets info
|
- name: write secrets info
|
||||||
run: |
|
run: |
|
||||||
|
|
13
.github/workflows/Build-Release.yml
vendored
13
.github/workflows/Build-Release.yml
vendored
|
@ -16,10 +16,9 @@ jobs:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
|
|
||||||
- uses: gradle/actions/setup-gradle@v3
|
- uses: gradle/actions/setup-gradle@v4
|
||||||
with:
|
with:
|
||||||
cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
|
cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
|
||||||
gradle-home-cache-cleanup: true
|
|
||||||
|
|
||||||
- name: write secrets info
|
- name: write secrets info
|
||||||
run: |
|
run: |
|
||||||
|
@ -86,16 +85,6 @@ jobs:
|
||||||
asset_name: gkd-${{ github.ref_name }}.apk
|
asset_name: gkd-${{ github.ref_name }}.apk
|
||||||
asset_content_type: application/vnd.android.package-archive
|
asset_content_type: application/vnd.android.package-archive
|
||||||
|
|
||||||
- uses: actions/upload-release-asset@v1
|
|
||||||
if: ${{ !contains(github.ref_name, 'beta') }}
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: outputs/apk/foss/release/app-foss-release.apk
|
|
||||||
asset_name: gkd-x-foss-${{ github.ref_name }}.apk
|
|
||||||
asset_content_type: application/vnd.android.package-archive
|
|
||||||
|
|
||||||
- run: zip -r outputs.zip outputs
|
- run: zip -r outputs.zip outputs
|
||||||
|
|
||||||
- uses: actions/upload-release-asset@v1
|
- uses: actions/upload-release-asset@v1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user