From 97ebbe1d7d9a3184751ecd36b9d677821120d576 Mon Sep 17 00:00:00 2001 From: peanut996 Date: Mon, 23 Dec 2024 12:05:38 +0800 Subject: [PATCH] fix apk name. --- .github/workflows/android-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml index b8b86a1..1bd6fb5 100644 --- a/.github/workflows/android-ci.yml +++ b/.github/workflows/android-ci.yml @@ -76,12 +76,12 @@ jobs: env: BUILD_TOOLS_VERSION: "34.0.0" - - name: Rename APK with Git SHA + - name: Rename APK with Version if: startsWith(github.ref, 'refs/tags/v') run: | - GIT_SHA=$(git rev-parse --short HEAD) - mv ${{ env.SIGNED_RELEASE_FILE }} android/app/build/outputs/apk/release/WARPTest-${GIT_SHA}.apk - echo "RELEASE_APK=android/app/build/outputs/apk/release/WARPTest-${GIT_SHA}.apk" >> $GITHUB_ENV + VERSION=${GITHUB_REF#refs/tags/} + mv ${{ env.SIGNED_RELEASE_FILE }} android/app/build/outputs/apk/release/CloudflareWarpSpeedTest-${VERSION}.apk + echo "RELEASE_APK=android/app/build/outputs/apk/release/CloudflareWarpSpeedTest-${VERSION}.apk" >> $GITHUB_ENV - name: Create Release if: startsWith(github.ref, 'refs/tags/v')