We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bc0c57 commit 6597c4dCopy full SHA for 6597c4d
1 file changed
.github/workflows/.github-ci.yml
@@ -0,0 +1,38 @@
1
+name: Build Flutter APK
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - test
7
+ workflow_dispatch:
8
9
+jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: Checkout source
15
+ uses: actions/checkout@v4
16
17
+ - name: Setup Flutter
18
+ uses: subosito/flutter-action@v2
19
+ with:
20
+ flutter-version: '3.13.0' # 可根据你的版本修改
21
22
+ - name: Install dependencies
23
+ run: flutter pub get
24
25
+ - name: Analyze
26
+ run: flutter analyze
27
28
+ - name: Run tests
29
+ run: flutter test
30
31
+ - name: Build APK
32
+ run: flutter build apk --release
33
34
+ - name: Upload APK artifact
35
+ uses: actions/upload-artifact@v4
36
37
+ name: flutter-apk
38
+ path: build/app/outputs/flutter-apk/app-release.apk
0 commit comments