@@ -18,39 +18,53 @@ jobs:
18
18
with :
19
19
format : YYYYMMDD-HH
20
20
utcOffset : " +08:00"
21
- - uses : actions/checkout@v2
21
+ - uses : actions/checkout@v4
22
22
with :
23
23
submodules : recursive
24
- - name : Decode Keystore
25
- env :
26
- ENCODED_STRING : ${{ secrets.SIGNING_STORE_BASE64 }}
27
- run : echo $ENCODED_STRING | base64 -di > app/keystore.jks
28
- - uses : AdoptOpenJDK/install-jdk@v1
24
+ - name : Install dependencies
25
+ run : |
26
+ sudo apt-get update
27
+ sudo apt-get install -y libarchive-zip-perl
28
+ - name : Decode proguard rules
29
+ uses : mobiledevops/secret-to-file-action@v1
29
30
with :
30
- version : ' 17'
31
- architecture : x64
31
+ base64-encoded-secret : ${{ secrets.PROGUARD_RULES }}
32
+ filename : " app/proguard-rules.pro"
33
+ - name : Decode keystore
34
+ uses : mobiledevops/secret-to-file-action@v1
35
+ with :
36
+ base64-encoded-secret : ${{ secrets.SIGNING_STORE_BASE64 }}
37
+ filename : " app/keystore.jks"
32
38
- uses : AdoptOpenJDK/install-jdk@v1
33
39
with :
34
- version : ' 15 '
40
+ version : ' 17 '
35
41
architecture : x64
36
- targets : ' JAVA_HOME_15'
37
42
- name : Build Riru modules
38
43
run : cd ./module && bash ./make.sh
44
+ env :
45
+ SIGNING_KEY_ALIAS : ${{ secrets.SIGNING_KEY_ALIAS }}
46
+ SIGNING_KEY_PASSWORD : ${{ secrets.SIGNING_KEY_PASSWORD }}
47
+ SIGNING_STORE_PASSWORD : ${{ secrets.SIGNING_STORE_PASSWORD }}
39
48
- name : Grant execute permission for gradlew
40
49
run : chmod +x gradlew
41
50
- name : Build with Gradle
42
- run : ./gradlew clean ":app:assembleRelease "
51
+ run : ./gradlew clean && ./gradlew ":app:assembleReleaseXposed "
43
52
env :
44
53
SIGNING_KEY_ALIAS : ${{ secrets.SIGNING_KEY_ALIAS }}
45
54
SIGNING_KEY_PASSWORD : ${{ secrets.SIGNING_KEY_PASSWORD }}
46
55
SIGNING_STORE_PASSWORD : ${{ secrets.SIGNING_STORE_PASSWORD }}
47
56
- name : Upload Apk
48
- uses : actions/upload-artifact@v2.2.0
57
+ uses : actions/upload-artifact@v4
49
58
with :
50
59
name : xposed.${{ steps.current-time.outputs.formattedTime }}
51
60
path : app/build/outputs/apk/release/*.apk
61
+ - name : Upload Mapping
62
+ uses : actions/upload-artifact@v4
63
+ with :
64
+ name : mapping.${{ steps.current-time.outputs.formattedTime }}
65
+ path : app/build/outputs/apk/mapping/release
52
66
- name : Upload Riru Modules
53
- uses : actions/upload-artifact@v2.2.0
67
+ uses : actions/upload-artifact@v4
54
68
with :
55
69
name : magisk.${{ steps.current-time.outputs.formattedTime }}
56
70
path : |
76
90
app/build/outputs/apk/release/*.apk
77
91
module/build/release/*.zip
78
92
body : " [Github Action](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})"
93
+ - name : Check WebDAV credentials
94
+ id : check-webdav
95
+ run : |
96
+ if [[ -n "${{ secrets.WEBDAV_ADDRESS }}" && -n "${{ secrets.WEBDAV_USERNAME }}" && -n "${{ secrets.WEBDAV_PASSWORD }}" ]]; then
97
+ echo "webdav_available=true" >> $GITHUB_OUTPUT
98
+ echo "WebDAV credentials are available"
99
+ else
100
+ echo "webdav_available=false" >> $GITHUB_OUTPUT
101
+ echo "WebDAV credentials are missing or incomplete"
102
+ fi
79
103
- name : Upload artifacts - Xposed
104
+ if : steps.check-webdav.outputs.webdav_available == 'true'
80
105
uses : Wandalen/wretry.action@master
81
106
with :
82
107
action : bxb100/action-upload@main
92
117
attempt_limit : 3
93
118
attempt_delay : 0
94
119
- name : Upload artifacts - Zygisk
120
+ if : steps.check-webdav.outputs.webdav_available == 'true'
95
121
uses : Wandalen/wretry.action@master
96
122
with :
97
123
action : bxb100/action-upload@main
@@ -107,6 +133,7 @@ jobs:
107
133
attempt_limit : 3
108
134
attempt_delay : 0
109
135
- name : Upload artifacts - Riru
136
+ if : steps.check-webdav.outputs.webdav_available == 'true'
110
137
uses : Wandalen/wretry.action@master
111
138
with :
112
139
action : bxb100/action-upload@main
0 commit comments