Skip to content

Commit 90421b9

Browse files
authored
build: update github actions flutter-build-apk.yml file
1 parent f174967 commit 90421b9

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/flutter-build-apk.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
1-
name: Build & Release Flutter APK
1+
name: Build APK
22

33
on:
44
push:
55
tags:
6-
- "v*" # Runs only when you push tags like v1.0.0, v2.1.3 etc.
6+
- "v*.*.*"
77

88
jobs:
99
build:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- name: Checkout source code
13+
- name: Checkout repository
1414
uses: actions/checkout@v4
1515

16-
- name: Set up Flutter
16+
- name: Setup Flutter
1717
uses: subosito/flutter-action@v2
1818
with:
19-
flutter-version: "3.24.0" # Change to your Flutter version
19+
flutter-version: "3.24.3"
20+
channel: stable
2021

2122
- name: Install dependencies
2223
run: flutter pub get
2324

24-
- name: Build release APK
25+
- name: Build APK
2526
run: flutter build apk --release
2627

27-
- name: Upload APK to GitHub Release
28-
uses: softprops/action-gh-release@v1
28+
- name: Upload Release APK
29+
uses: softprops/action-gh-release@v2
2930
with:
3031
files: build/app/outputs/flutter-apk/app-release.apk
3132
env:

0 commit comments

Comments
 (0)