Skip to content

Commit babf7dc

Browse files
author
Bot
committed
添加release APK构建
1 parent 4f540b1 commit babf7dc

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Build APKs
2-
32
on:
43
workflow_dispatch:
54
push:
@@ -12,7 +11,7 @@ jobs:
1211
steps:
1312
- name: Checkout
1413
uses: actions/checkout@v5
15-
14+
1615
- name: Setup JDK
1716
uses: actions/setup-java@v5
1817
with:
@@ -29,6 +28,9 @@ jobs:
2928
- name: Build Debug APK
3029
run: ./gradlew :android:assembleDebug --no-daemon
3130

31+
- name: Build Release APK
32+
run: ./gradlew :android:assembleRelease --no-daemon
33+
3234
- name: Show outputs
3335
run: |
3436
echo "=== Checking build outputs ==="
@@ -42,4 +44,13 @@ jobs:
4244
name: LinuxCommandLibrary-debug
4345
path: |
4446
android/build/outputs/apk/debug/*.apk
45-
retention-days: 5
47+
retention-days: 30
48+
49+
- name: Upload Release APK
50+
if: success()
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: LinuxCommandLibrary-release
54+
path: |
55+
android/build/outputs/apk/release/*.apk
56+
retention-days: 30

0 commit comments

Comments
 (0)