File tree Expand file tree Collapse file tree 2 files changed +54
-7
lines changed Expand file tree Collapse file tree 2 files changed +54
-7
lines changed Original file line number Diff line number Diff line change 1+ name : Pre Release
2+
3+ # 触发器
4+ on :
5+ workflow_dispatch :
6+ push :
7+ pull_request :
8+
9+ jobs :
10+ build :
11+
12+ runs-on : ubuntu-latest
13+ # 设置JDK为11
14+ steps :
15+ - uses : actions/checkout@v3
16+ - name : Set up JDK 11
17+ uses : actions/setup-java@v3
18+ with :
19+ distribution : ' adopt'
20+ java-version : ' 11'
21+ - name : Checkout Secret
22+ uses : actions/checkout@v3
23+ with :
24+ repository : ${{ secrets.SECRET_REPO }}
25+ token : ${{ secrets.TOKEN }} # 连接仓库的token,需要单独配置
26+ path : secret
27+ # 准备secret文件
28+ - name : Copy Secret Files
29+ run : |
30+ cd secret/Imomoe
31+ cp key.jks ../..
32+ cp secret.gradle ../..
33+ cp notice.html ../../app/src/main/res/raw
34+ # 清理secret文件
35+ - name : Clean Temp Secret Files
36+ run : |
37+ rm -rf ./secret
38+ # 打包
39+ - name : Build with Gradle
40+ run : |
41+ bash ./gradlew assembleGithub
42+ # 存档打包的文件
43+ - name : Archive production artifacts
44+ uses : actions/upload-artifact@v3
45+ with :
46+ name : build
47+ path : app/build/outputs/apk/Github/release/*.apk
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ kotlin.code.style=official
2323android.enableResourceOptimizations =true
2424
2525# clash代理
26- systemProp.socks.proxyHost =127.0.0.1
27- systemProp.socks.proxyPort =7890
28-
29- systemProp.https.proxyPort =7890
30- systemProp.http.proxyHost =127.0.0.1
31- systemProp.https.proxyHost =127.0.0.1
32- systemProp.http.proxyPort =7890
26+ # systemProp.socks.proxyHost=127.0.0.1
27+ # systemProp.socks.proxyPort=7890
28+ #
29+ # systemProp.https.proxyPort=7890
30+ # systemProp.http.proxyHost=127.0.0.1
31+ # systemProp.https.proxyHost=127.0.0.1
32+ # systemProp.http.proxyPort=7890
You can’t perform that action at this time.
0 commit comments