Skip to content

Commit

Permalink
remove version code in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lings03 committed Aug 16, 2024
1 parent 02d84bf commit 42e2da6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit 42e2da6

Please sign in to comment.