From 99d1df8b04223e9730e9c835a4dfd48eb6de3dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=88=BA=E8=9E=88?= Date: Wed, 13 Nov 2024 00:35:41 +0800 Subject: [PATCH] chore: Update Gradle setup to version 4 in Build-Apk.yml and Build-Release.yml workflows --- .github/workflows/Build-Apk.yml | 3 +-- .github/workflows/Build-Release.yml | 13 +------------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/Build-Apk.yml b/.github/workflows/Build-Apk.yml index 66ee26c..7b0c562 100644 --- a/.github/workflows/Build-Apk.yml +++ b/.github/workflows/Build-Apk.yml @@ -23,10 +23,9 @@ jobs: distribution: 'adopt' java-version: '17' - - uses: gradle/actions/setup-gradle@v3 + - uses: gradle/actions/setup-gradle@v4 with: cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }} - gradle-home-cache-cleanup: true - name: write secrets info run: | diff --git a/.github/workflows/Build-Release.yml b/.github/workflows/Build-Release.yml index 730cad5..0ead531 100644 --- a/.github/workflows/Build-Release.yml +++ b/.github/workflows/Build-Release.yml @@ -16,10 +16,9 @@ jobs: distribution: 'adopt' java-version: '17' - - uses: gradle/actions/setup-gradle@v3 + - uses: gradle/actions/setup-gradle@v4 with: cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }} - gradle-home-cache-cleanup: true - name: write secrets info run: | @@ -86,16 +85,6 @@ jobs: asset_name: gkd-${{ github.ref_name }}.apk 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 - uses: actions/upload-release-asset@v1