From 42e2da6b9a3155b70fabeb33668c542c925f47f8 Mon Sep 17 00:00:00 2001 From: lings <90336521+lings03@users.noreply.github.com> Date: Sat, 17 Aug 2024 01:22:31 +0800 Subject: [PATCH] remove version code in workflow --- .github/workflows/ci.yml | 7 ++----- .github/workflows/release.yml | 2 +- app/build.gradle.kts | 4 ++-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4baa29..73a79f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,17 +30,14 @@ jobs: - name: assembleDebug with Gradle run: ./gradlew assembleDebug - - name: Get tag name - run: echo "TAG_NAME=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV - - name: Upload release apk uses: actions/upload-artifact@v3 with: name: release - path: app/build/outputs/apk/release/ModManager-release-${{ env.TAG_NAME }}.apk + path: app/build/outputs/apk/release/ModManager-release.apk - name: Upload debug apk uses: actions/upload-artifact@v3 with: name: debug - path: app/build/outputs/apk/debug/ModManager-release-${{ env.TAG_NAME }}.apk + path: app/build/outputs/apk/debug/ModManager-release.apk diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42d66d8..e5050d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,4 +41,4 @@ jobs: draft: false prerelease: false files: | - app/build/outputs/apk/release/ModManager-release-${{ github.ref_name }}.apk + app/build/outputs/apk/release/ModManager-release.apk diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e91668e..9fb3842 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -47,12 +47,12 @@ android { applicationVariants.all { outputs.all { (this as com.android.build.gradle.internal.api.BaseVariantOutputImpl).outputFileName = - "ModManager-release-${buildInfo.versionName}.apk" + "ModManager-release.apk" } if (this.buildType.name == "release") { this.assembleProvider.get().doLast { - generateUpdateInfo("ModManager-release-${buildInfo.versionName}.apk") + generateUpdateInfo("ModManager-release.apk") generateGameConfigApi() } }