Skip to content

Commit d877379

Browse files
committed
chore(build): change git release tag to version code
Signed-off-by: Trumeet <[email protected]>
1 parent e324195 commit d877379

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ before_install:
2020
- openssl aes-256-cbc -K $encrypted_7aab63907238_key -iv $encrypted_7aab63907238_iv -in .yuuta.jks.enc -out .yuuta.jks -d
2121
before_deploy:
2222
- export VERSION=$(cat version.txt)
23-
- git tag $VERSION
23+
- export VERSION_CODE=$(version_code.txt)
24+
- git tag $VERSION_CODE
2425
# Rename
2526
- mv "app/build/outputs/apk/release/app-release.apk" "app/build/outputs/apk/release/app.apk"
2627
deploy:

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ task exportVersion(type: Exec) {
4040
commandLine 'sh'
4141
doLast {
4242
file("$projectDir/version.txt").text = """$version"""
43+
file("$projectDir/version_code.txt").text = """${gitCommitCount}"""
4344
}
4445
}

0 commit comments

Comments
 (0)