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
name: Flutter CI/CD | |
on: | |
push: | |
branches: | |
- feature/mi_card | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.13.5' # specify your flutter version here | |
- name: Install Dependencies | |
run: flutter pub get | |
# Add more steps if needed, e.g., building APK or AAB, deploying to stores, etc. | |
- name: Build APK | |
run: flutter build apk --release | |
# OR | |
- name: Build AAB | |
run: flutter build appbundle --release | |
- name: Upload APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app-release.apk | |
path: build/app/outputs/flutter-apk/app-release.apk |