[优化] 优化工作流和更新依赖
This commit is contained in:
@@ -151,6 +151,8 @@ jobs:
|
|||||||
echo "清空18PlusList.txt"
|
echo "清空18PlusList.txt"
|
||||||
echo "">$GITHUB_WORKSPACE/app/src/main/assets/18PlusList.txt
|
echo "">$GITHUB_WORKSPACE/app/src/main/assets/18PlusList.txt
|
||||||
- name: Release Apk Sign
|
- name: Release Apk Sign
|
||||||
|
# 仅在所有者的 PR 或 push 时进行签名
|
||||||
|
if: ${{ github.actor == 'HapeLee' }}
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.SIGNING_KEY }}" | base64 -d > $GITHUB_WORKSPACE/app/my-release-key.jks
|
echo "${{ secrets.SIGNING_KEY }}" | base64 -d > $GITHUB_WORKSPACE/app/my-release-key.jks
|
||||||
echo "RELEASE_STORE_FILE=my-release-key.jks" >> $GITHUB_WORKSPACE/gradle.properties
|
echo "RELEASE_STORE_FILE=my-release-key.jks" >> $GITHUB_WORKSPACE/gradle.properties
|
||||||
@@ -232,6 +234,7 @@ jobs:
|
|||||||
test_Branch:
|
test_Branch:
|
||||||
needs: [ prepare, build ]
|
needs: [ prepare, build ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
# 仅在所有者的非 PR 事件时执行(即所有者 push 到 main 分支时)
|
||||||
if: ${{ github.event_name != 'pull_request' && github.actor == 'HapeLee' }}
|
if: ${{ github.event_name != 'pull_request' && github.actor == 'HapeLee' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
@@ -261,9 +264,11 @@ jobs:
|
|||||||
|
|
||||||
create_release:
|
create_release:
|
||||||
needs: [ prepare, build ]
|
needs: [ prepare, build ]
|
||||||
|
# 仅在所有者的 push 到 main 分支时执行发布
|
||||||
if: |
|
if: |
|
||||||
github.event_name == 'push' &&
|
github.event_name == 'push' &&
|
||||||
github.ref == 'refs/heads/main' &&
|
github.ref == 'refs/heads/main' &&
|
||||||
|
github.actor == 'HapeLee' &&
|
||||||
(needs.prepare.outputs.build_number > 0 || needs.prepare.outputs.is_release == 'true') &&
|
(needs.prepare.outputs.build_number > 0 || needs.prepare.outputs.is_release == 'true') &&
|
||||||
success()
|
success()
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -289,13 +294,13 @@ jobs:
|
|||||||
cd artifacts
|
cd artifacts
|
||||||
# 重命名 release 版本
|
# 重命名 release 版本
|
||||||
for f in *app_${VERSIONL}.apk; do [ -f "$f" ] && mv "$f" "legado-${VERSIONL}.apk"; done
|
for f in *app_${VERSIONL}.apk; do [ -f "$f" ] && mv "$f" "legado-${VERSIONL}.apk"; done
|
||||||
for f in *app_${VERSIONL}-arm64-v8a.apk; do [ -f "$f" ] && mv "$f" "legado-${VERSIONL}-arm64-v8a.apk"; done
|
for f in *app_${VERSIONL}_arm64-v8a.apk; do [ -f "$f" ] && mv "$f" "legado-${VERSIONL}-arm64-v8a.apk"; done
|
||||||
for f in *app_${VERSIONL}-armeabi-v7a.apk; do [ -f "$f" ] && mv "$f" "legado-${VERSIONL}-armeabi-v7a.apk"; done
|
for f in *app_${VERSIONL}_armeabi-v7a.apk; do [ -f "$f" ] && mv "$f" "legado-${VERSIONL}-armeabi-v7a.apk"; done
|
||||||
|
|
||||||
# 重命名 noR8 版本 (如果存在)
|
# 重命名 noR8 版本 (如果存在)
|
||||||
for f in *app_${VERSIONL}-noR8.apk; do [ -f "$f" ] && mv "$f" "legado-${VERSIONL}-noR8.apk"; done
|
for f in *app_${VERSIONL}-noR8.apk; do [ -f "$f" ] && mv "$f" "legado-${VERSIONL}-noR8.apk"; done
|
||||||
for f in *app_${VERSIONL}-noR8-arm64-v8a.apk; do [ -f "$f" ] && mv "$f" "legado-${VERSIONL}-noR8-arm64-v8a.apk"; done
|
for f in *app_${VERSIONL}-noR8_arm64-v8a.apk; do [ -f "$f" ] && mv "$f" "legado-${VERSIONL}-noR8-arm64-v8a.apk"; done
|
||||||
for f in *app_${VERSIONL}-noR8-armeabi-v7a.apk; do [ -f "$f" ] && mv "$f" "legado-${VERSIONL}-noR8-armeabi-v7a.apk"; done
|
for f in *app_${VERSIONL}-noR8_armeabi-v7a.apk; do [ -f "$f" ] && mv "$f" "legado-${VERSIONL}-noR8-armeabi-v7a.apk"; done
|
||||||
|
|
||||||
ls -l
|
ls -l
|
||||||
|
|
||||||
|
|||||||
+18
-18
@@ -1,29 +1,29 @@
|
|||||||
[versions]
|
[versions]
|
||||||
|
|
||||||
accompanistWebview = "0.36.0"
|
accompanistWebview = "0.36.0"
|
||||||
adaptive = "1.3.0-alpha06"
|
adaptive = "1.3.0-alpha09"
|
||||||
adaptiveLayout = "1.3.0-alpha06"
|
adaptiveLayout = "1.3.0-alpha09"
|
||||||
adaptiveNavigation = "1.3.0-alpha06"
|
adaptiveNavigation = "1.3.0-alpha09"
|
||||||
animation = "1.10.1"
|
animation = "1.10.1"
|
||||||
biometric = "1.2.0"
|
biometric = "1.2.0"
|
||||||
coilCompose = "2.7.0"
|
coilCompose = "2.7.0"
|
||||||
composeBom = "2026.01.00"
|
composeBom = "2026.03.00"
|
||||||
constraintlayoutCompose = "1.1.1"
|
constraintlayoutCompose = "1.1.1"
|
||||||
coreSplashscreen = "1.2.0"
|
coreSplashscreen = "1.2.0"
|
||||||
datastorePreferences = "1.2.0"
|
datastorePreferences = "1.2.1"
|
||||||
foundation = "1.10.1"
|
foundation = "1.10.5"
|
||||||
kotlin = "2.3.0"
|
kotlin = "2.3.10"
|
||||||
kotlinxSerialization = "1.10.0"
|
kotlinxSerialization = "1.10.0"
|
||||||
kotlinxCoroutinesAndroid = "1.10.2"
|
kotlinxCoroutinesAndroid = "1.10.2"
|
||||||
kotlinxSerializationJson = "1.10.0"
|
kotlinxSerializationJson = "1.10.0"
|
||||||
ksp = "2.3.4"
|
ksp = "2.3.6"
|
||||||
agp = "8.13.2"
|
agp = "8.13.2"
|
||||||
appcompat = "1.7.1"
|
appcompat = "1.7.1"
|
||||||
colorpicker = "1.1.0"
|
colorpicker = "1.1.0"
|
||||||
colorpicker-compose = "1.1.3"
|
colorpicker-compose = "1.1.3"
|
||||||
commonsText = "1.15.0"
|
commonsText = "1.15.0"
|
||||||
constraintlayout = "2.2.1"
|
constraintlayout = "2.2.1"
|
||||||
core = "1.17.0"
|
core = "1.18.0"
|
||||||
firebaseBom = "34.6.0"
|
firebaseBom = "34.6.0"
|
||||||
flexbox = "3.0.0"
|
flexbox = "3.0.0"
|
||||||
fragment = "1.8.9"
|
fragment = "1.8.9"
|
||||||
@@ -43,17 +43,17 @@ jsoupxpath = "2.5.3"
|
|||||||
coroutines = "1.10.2"
|
coroutines = "1.10.2"
|
||||||
lifecycleViewmodelCompose = "2.10.0"
|
lifecycleViewmodelCompose = "2.10.0"
|
||||||
liveeventbus = "1.8.14"
|
liveeventbus = "1.8.14"
|
||||||
navigation3 = "1.0.0"
|
navigation3 = "1.0.1"
|
||||||
markdownCompose = "0.5.0"
|
markdownCompose = "0.5.0"
|
||||||
markwon = "4.6.2"
|
markwon = "4.6.2"
|
||||||
material = "1.14.0-alpha08"
|
material = "1.14.0-alpha10"
|
||||||
material3 = "1.5.0-alpha12"
|
material3 = "1.5.0-alpha15"
|
||||||
material3IconsExtended = "1.7.8"
|
material3IconsExtended = "1.7.8"
|
||||||
materialKolor = "4.1.0"
|
materialKolor = "4.1.1"
|
||||||
media = "1.7.1"
|
media = "1.7.1"
|
||||||
media3 = "1.8.0"
|
media3 = "1.8.0"
|
||||||
nanoHttpd = "2.3.1"
|
nanoHttpd = "2.3.1"
|
||||||
navigationCompose = "2.9.6"
|
navigationCompose = "2.9.7"
|
||||||
okhttp = "5.3.2"
|
okhttp = "5.3.2"
|
||||||
palette = "1.0.0"
|
palette = "1.0.0"
|
||||||
preference = "1.2.1"
|
preference = "1.2.1"
|
||||||
@@ -64,7 +64,7 @@ splitties = "3.0.0"
|
|||||||
rhino = "1.8.1"
|
rhino = "1.8.1"
|
||||||
desugar = "2.1.5"
|
desugar = "2.1.5"
|
||||||
|
|
||||||
activity = "1.12.2"
|
activity = "1.13.0"
|
||||||
#kotlinxSerialization = "1.8.0"
|
#kotlinxSerialization = "1.8.0"
|
||||||
startupRuntime = "1.2.0"
|
startupRuntime = "1.2.0"
|
||||||
swiperefreshlayout = "1.2.0"
|
swiperefreshlayout = "1.2.0"
|
||||||
@@ -74,15 +74,15 @@ recyclerview = "1.4.0"
|
|||||||
uiViewbinding = "1.9.4"
|
uiViewbinding = "1.9.4"
|
||||||
viewpager2 = "1.1.0"
|
viewpager2 = "1.1.0"
|
||||||
webkit = "1.15.0"
|
webkit = "1.15.0"
|
||||||
collection = "1.5.0"
|
collection = "1.6.0"
|
||||||
|
|
||||||
zxingLite = "3.3.0"
|
zxingLite = "3.3.0"
|
||||||
|
|
||||||
koin-bom = "4.1.1"
|
koin-bom = "4.2.0"
|
||||||
biometricKtx = "1.1.0"
|
biometricKtx = "1.1.0"
|
||||||
|
|
||||||
reorderable = "3.0.0"
|
reorderable = "3.0.0"
|
||||||
haze = "1.7.1"
|
haze = "1.7.2"
|
||||||
[libraries]
|
[libraries]
|
||||||
|
|
||||||
accompanist-webview = { module = "com.google.accompanist:accompanist-webview", version.ref = "accompanistWebview" }
|
accompanist-webview = { module = "com.google.accompanist:accompanist-webview", version.ref = "accompanistWebview" }
|
||||||
|
|||||||
Reference in New Issue
Block a user