Skip to content

Commit 588ead0

Browse files
Create andriod1.yml
1 parent a3a2762 commit 588ead0

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/andriod1.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build APK
2+
3+
on:
4+
push:
5+
branches: [ master ] # 仅 master 更新时触发
6+
workflow_dispatch: # 允许手动触发
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout source (含子模块)
14+
uses: actions/checkout@v4
15+
with:
16+
submodules: recursive
17+
fetch-depth: 0
18+
19+
- name: Set up JDK 17
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: temurin
23+
java-version: 17
24+
25+
- name: Make gradlew executable
26+
run: chmod +x gradlew
27+
28+
- name: Build release APK
29+
run: ./gradlew :app_main:assembleRelease
30+
31+
- name: Upload artifact
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: RFIDtools-latest
35+
path: app_main/build/outputs/apk/release/app_main-release.apk

0 commit comments

Comments
 (0)