File tree 1 file changed +47
-0
lines changed
1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Android CI
2
+
3
+ on :
4
+ push :
5
+ branches : ["main"]
6
+ tags :
7
+ - " *"
8
+ pull_request :
9
+ branches : ["main"]
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+
15
+ permissions :
16
+ contents : write
17
+
18
+ steps :
19
+ - uses : actions/setup-java@v3
20
+ with :
21
+ distribution : " zulu"
22
+ java-version : " 17"
23
+
24
+ - name : Install zipalign
25
+ run : |
26
+ sudo apt-get update
27
+ sudo apt-get install -y zipalign
28
+
29
+ - name : Checkout repository
30
+ uses : actions/checkout@v4
31
+
32
+ - name : Grant execute permission for gradlew
33
+ run : chmod +x gradlew
34
+
35
+ - name : Build APK
36
+ run : ./gradlew assembleRelease
37
+
38
+ - name : Align APK
39
+ run : |
40
+ cd app/build/outputs/apk/release
41
+ zipalign -v -p 4 app-release-unsigned.apk ludditeinstaller.apk
42
+
43
+ - name : Release
44
+ uses : softprops/action-gh-release@v2
45
+ if : startsWith(github.ref, 'refs/tags/')
46
+ with :
47
+ files : app/build/outputs/apk/release/ludditeinstaller.apk
You can’t perform that action at this time.
0 commit comments