Skip to content

Commit 6d18e10

Browse files
authored
Create deploy_android.yml
1 parent 3521d11 commit 6d18e10

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/deploy_android.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: deploy_android
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Install and set Flutter version
15+
uses: subosito/flutter-action@v2
16+
with:
17+
flutter-version: '3.x'
18+
channel: 'stable'
19+
20+
- name: Flutter Doctor
21+
run: flutter doctor
22+
23+
- name: Install Melos
24+
run: dart pub global activate melos
25+
26+
- name: Melos Bootstrap
27+
run:
28+
dart run melos bootstrap
29+
dart run melos run prebuild:android
30+
31+
- name: Build Android
32+
run: flutter build apk --release
33+
34+
- name: Upload Release
35+
uses: actions/upload-release-asset@v1
36+
with:
37+
upload_url: ${{ github.event.release.upload_url }}
38+
asset_path: build/app/outputs/flutter-apk/app-release.apk
39+
asset_name: app-release.apk
40+
asset_content_type: application/vnd.android.package-archive

0 commit comments

Comments
 (0)