File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 27
27
keyPassword : ${{ secrets.KEY_PASSWORD }}
28
28
env :
29
29
BUILD_TOOLS_VERSION : " 34.0.0"
30
- - run : mv ${{steps.sign_app.outputs.signedReleaseFile}} ClipboardSync_$GITHUB_REF_NAME.apk
31
30
- uses : ncipollo/release-action@v1
32
31
with :
33
- artifacts : " * .apk"
32
+ artifacts : " app/build/outputs/apk/release/*-signed .apk"
34
33
token : ${{ github.token }}
35
34
generateReleaseNotes : true
Original file line number Diff line number Diff line change @@ -35,6 +35,17 @@ android {
35
35
}
36
36
}
37
37
38
+ applicationVariants.all {
39
+ val variant = this
40
+ if (variant.buildType.name == " release" )
41
+ variant.outputs.map { it as com.android.build.gradle.internal.api.BaseVariantOutputImpl }
42
+ .forEach { output ->
43
+ val abi = output.getFilter(com.android.build.OutputFile .ABI ) ? : " universal"
44
+ val apkName = " cs-${defaultConfig.versionName} -${abi} -${variant.buildType.name} .apk"
45
+ output.outputFileName = apkName
46
+ }
47
+ }
48
+
38
49
compileOptions {
39
50
sourceCompatibility = JavaVersion .VERSION_11
40
51
targetCompatibility = JavaVersion .VERSION_11
You can’t perform that action at this time.
0 commit comments