Skip to content

Commit

Permalink
fix apk name.
Browse files Browse the repository at this point in the history
  • Loading branch information
peanut996 committed Dec 23, 2024
1 parent b38c98c commit 97ebbe1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 97ebbe1

Please sign in to comment.