Skip to content

Commit e2cc4be

Browse files
添加Android CI配置
1 parent fc9b76f commit e2cc4be

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

.github/workflows/android.yml

+18-11
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,22 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
16-
- name: set up JDK 11
17-
uses: actions/setup-java@v4
18-
with:
19-
java-version: '11'
20-
distribution: 'temurin'
21-
cache: gradle
15+
- uses: actions/checkout@v4
16+
- name: set up JDK 11
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '11'
20+
distribution: 'temurin'
21+
cache: gradle
2222

23-
- name: Grant execute permission for gradlew
24-
run: chmod +x gradlew
25-
- name: Build with Gradle
26-
run: ./gradlew build
23+
- name: Grant execute permission for gradlew
24+
run: chmod +x gradlew
25+
26+
- name: Build with Gradle
27+
run: ./gradlew assembleRelease
28+
29+
- name: Upload APK
30+
uses: actions/upload-artifact@v3
31+
with:
32+
name: BUILD_AT_ONLINE
33+
path: apk/online/release/*.apk

0 commit comments

Comments
 (0)