Commit 4d5fe2d 1 parent 3137c00 commit 4d5fe2d Copy full SHA for 4d5fe2d
File tree 2 files changed +29
-1
lines changed
2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@v4
10
+
10
11
- name : Setup Java 17
11
12
uses : actions/setup-java@v4
12
13
with :
13
14
distribution : ' zulu'
14
15
java-version : ' 17'
16
+
17
+ - name : Set BUILD_TAG
18
+ run : echo "BUILD_TAG=.ci" >> $GITHUB_ENV
19
+
20
+ - name : Decode Keystore
21
+ env :
22
+ KEYSTORE : ${{ secrets.KEYSTORE }}
23
+ run : echo $KEYSTORE | base64 --decode > ./app/ci.ks
24
+
25
+ - name : Decode Properties
26
+ env :
27
+ PROPERTIES : ${{ secrets.PROPERTIES }}
28
+ run : echo $PROPERTIES | base64 --decode > local.properties
29
+
15
30
- name : Build with Gradle
16
31
run : ./gradlew build
32
+
33
+ - name : Get current branch name
34
+ run : echo "BRANCH=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV
35
+
36
+ - name : Create Release
37
+ uses : softprops/action-gh-release@v2
38
+ if : ${{ env.BRANCH }} == "3.x"
39
+ with :
40
+ tag_name : ci${{ github.run_number }}
41
+ name : CI-Release-${{ env.BRANCH }}-${{ github.run_number }}
42
+ files : ./app/build/outputs/apk/release/com.apkupdater.ci-release.apk
43
+ body : ${{ github.event.head_commit.message }}
44
+ prerelease : true
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ android {
12
12
compileSdk = 34
13
13
14
14
defaultConfig {
15
- applicationId = " com.apkupdater"
15
+ applicationId = " com.apkupdater" + System .getenv( " BUILD_TAG " ).orEmpty()
16
16
minSdk = 21
17
17
targetSdk = 34
18
18
versionCode = 52
You can’t perform that action at this time.
0 commit comments