Skip to content

Commit 2a63f2d

Browse files
committed
feat: add github action to build windows apk
1 parent a92721a commit 2a63f2d

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build Flutter Windows App
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
build-windows:
9+
runs-on: windows-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Flutter
16+
uses: subosito/flutter-action@v2
17+
with:
18+
flutter-version: 'stable'
19+
20+
- name: Enable Windows Desktop
21+
run: flutter config --enable-windows-desktop
22+
23+
- name: Install dependencies
24+
run: flutter pub get
25+
26+
- name: Build Windows app
27+
run: flutter build windows
28+
29+
- name: Upload artifact
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: windows-build
33+
path: build/windows/x64/runner/Release/

0 commit comments

Comments
 (0)