Skip to content

Commit

Permalink
NEW UPDATE
Browse files Browse the repository at this point in the history
  • Loading branch information
HasanHammoudah authored and HasanHammoudah committed Aug 14, 2024
1 parent 5f05ebd commit 5151bc7
Showing 1 changed file with 21 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,33 @@ jobs:

- name: Clean Flutter Build
run: flutter clean

- name: Clean Gradle Build
run: ./gradlew clean
working-directory: android
continue-on-error: true # Optional: Continue even if this fails


- name: Install Dependencies
run: |
flutter pub get
bundle install
working-directory: android

- name: Build APK
run: flutter build apk --release --verbose
working-directory: android
working-directory: ./ # Ensure this is the root of the project

- name: Build APK for Development
run: flutter build apk --flavor development --release --verbose
working-directory: ./ # Ensure this is the root of the project

- name: Build APK for Release
run: flutter build apk --flavor production --release --verbose
working-directory: ./ # Ensure this is the root of the project

- name: Distribute Development APK
env:
FIREBASE_CLI_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}
run: |
cd android
bundle exec fastlane android firebase_distribution --verbose --lane development
working-directory: ./android

- name: Build and Distribute App
- name: Distribute Release APK
env:
FIREBASE_CLI_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}
run: |
cd android
bundle exec fastlane android firebase_distribution --verbose
bundle exec fastlane android firebase_distribution --verbose --lane release
working-directory: ./android

0 comments on commit 5151bc7

Please sign in to comment.