-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added ci/cd integration for flutter app
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Flutter Build Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: Build Flutter App | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true # Ensures the Flutter submodule is checked out | ||
|
||
- name: Set up Java 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Set up Flutter | ||
run: | | ||
echo "Adding Flutter to PATH" | ||
echo "$GITHUB_WORKSPACE/flutter/bin" >> $GITHUB_PATH | ||
flutter/bin/flutter doctor | ||
- name: Install dependencies | ||
run: flutter/bin/flutter pub get | ||
|
||
- name: Build APK (Release) | ||
run: flutter/bin/flutter build apk --release | ||
|
||
- name: Build App Bundle (AAB) | ||
run: flutter/bin/flutter build appbundle --release |