File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Create Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+ workflow_dispatch :
8+ inputs :
9+ release_tag :
10+ description : vx.y.z
11+ required : true
12+ type : string
13+
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - name : Checkout Repo
21+ uses : actions/checkout@v4
22+
23+ - name : Set up JDK 18
24+ uses : actions/setup-java@v4
25+ with :
26+ distribution : ' zulu'
27+ java-version : ' 18'
28+ java-package : ' jdk'
29+ cache : ' gradle'
30+
31+ - name : Grant execute permission for gradlew
32+ run : chmod +x gradlew
33+
34+ - name : Build APK
35+ run : |
36+ ./gradlew build
37+
38+
39+
40+ - name : Sign APK
41+ run : |
42+ ANDROID_SDK_PATH=$ANDROID_HOME/build-tools/35.0.0/apksigner
43+ $ANDROID_SDK_PATH sign \
44+ --ks ${{ secrets.KEYSTORE_PATH }} \
45+ --ks-key-alias ${{ secrets.KEY_ALIAS }} \
46+ --ks-pass pass:${{ secrets.KEYSTORE_PASSWORD }} \
47+ --key-pass pass:${{ secrets.KEY_PASSWORD }} \
48+ --out app-release.apk \
49+ app/build/outputs/apk/release/app-release-unsigned.apk
50+
51+
52+
53+ - name : Upload APK Artifact
54+ uses : actions/upload-artifact@v4
55+ with :
56+ name : apk-artifact
57+ path : app-release.apk
58+ compression-level : 5
59+
60+ release :
61+ needs : [build]
62+ runs-on : ubuntu-latest
63+ permissions :
64+ contents : write
65+
66+ steps :
67+
68+
69+ - name : Download Build Artifacts
70+ uses : actions/download-artifact@v4
71+ with :
72+ name : apk-artifact
73+
74+
75+
76+ - name : Release
77+ uses : softprops/action-gh-release@v2
78+ with :
79+ files : |
80+ app-release.apk
Original file line number Diff line number Diff line change 1313.externalNativeBuild
1414.cxx
1515local.properties
16+
17+ /app /release /*
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ espressoCore = "3.6.1"
99appcompat = " 1.7.0"
1010loggingInterceptor = " 4.12.0"
1111material = " 1.12.0"
12- constraintlayout = " 2.1.4 "
13- lifecycleLivedataKtx = " 2.8.7 "
14- lifecycleViewmodelKtx = " 2.8.7 "
15- navigationFragment = " 2.7.7 "
16- navigationUi = " 2.7.7 "
12+ constraintlayout = " 2.2.1 "
13+ lifecycleLivedataKtx = " 2.9.0 "
14+ lifecycleViewmodelKtx = " 2.9.0 "
15+ navigationFragment = " 2.9.0 "
16+ navigationUi = " 2.9.0 "
1717okhttp = " 5.0.0-alpha.14"
1818retrofit = " 2.11.02"
1919legacySupportV4 = " 1.0.0"
You can’t perform that action at this time.
0 commit comments