Commit ffe24e4 1 parent 8c649c5 commit ffe24e4 Copy full SHA for ffe24e4
File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 14
14
distribution : ' zulu'
15
15
java-version : ' 17'
16
16
17
- - name : Set BUILD_TAG
18
- run : echo "BUILD_TAG=.ci" >> $GITHUB_ENV
19
-
20
17
- name : Decode Keystore
21
18
env :
22
19
KEYSTORE : ${{ secrets.KEYSTORE }}
28
25
run : echo $PROPERTIES | base64 --decode > local.properties
29
26
30
27
- name : Build with Gradle
28
+ env :
29
+ BUILD_TAG : " .ci"
30
+ BUILD_NUMBER : ${{ github.run_number }}
31
31
run : ./gradlew build
32
32
33
33
- name : Get current branch name
37
37
uses : softprops/action-gh-release@v2
38
38
if : ${{ env.BRANCH }} == "3.x"
39
39
with :
40
- tag_name : 0.0 .${{ github.run_number }}-ci
40
+ tag_name : 3.1 .${{ github.run_number }}-ci
41
41
name : CI-Release-${{ env.BRANCH }}-${{ github.run_number }}
42
42
files : ./app/build/outputs/apk/release/com.apkupdater.ci-release.apk
43
43
body : ${{ github.event.head_commit.message }}
Original file line number Diff line number Diff line change @@ -11,12 +11,13 @@ android {
11
11
namespace = " com.apkupdater"
12
12
compileSdk = 34
13
13
14
+ val buildNumber = System .getenv(" BUILD_NUMBER" ).orEmpty()
14
15
defaultConfig {
15
16
applicationId = " com.apkupdater" + System .getenv(" BUILD_TAG" ).orEmpty()
16
17
minSdk = 21
17
18
targetSdk = 34
18
19
versionCode = 52
19
- versionName = " 3.0.3"
20
+ versionName = if (buildNumber.isEmpty()) " 3.0.3" else " 3.1. $buildNumber "
20
21
testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
21
22
vectorDrawables.useSupportLibrary = true
22
23
}
You can’t perform that action at this time.
0 commit comments