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

This commit is contained in:
二刺螈 2024-11-13 00:35:41 +08:00
parent 39fd831853
commit 99d1df8b04
2 changed files with 2 additions and 14 deletions

View File

@ -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: |

View File

@ -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