Skip to content

Commit

Permalink
Update flutter-android-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dapucla authored Sep 11, 2024
1 parent 76e1aeb commit 914c9d5
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/flutter-android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,44 +17,39 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

# Set up Flutter 3.3.0
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.3.0'
flutter-version: 'stable' # Use the latest stable Flutter version

- name: Verify Flutter and Dart versions
run: |
flutter --version
dart --version
- name: Disable Flutter Analytics
run: flutter config --no-analytics

# Clear Flutter/Dart Cache
- name: Clear Flutter/Dart Cache
run: |
flutter clean
rm -rf ~/.pub-cache
# Verify the installed Flutter and Dart versions
- name: Check Flutter and Dart Versions
run: |
flutter --version
dart --version
# Install dependencies
- name: Install dependencies
run: flutter pub get

# Build the APK
- name: Build APK
run: flutter build apk --release

# Build the AAB
- name: Build AAB
run: flutter build appbundle --release

# Upload APK artifact
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: app-release.apk
path: build/app/outputs/apk/release/app-release.apk

# Upload AAB artifact
- name: Upload AAB
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 914c9d5

Please sign in to comment.