feat: Migrate Android deployment workflow to macOS runner, simplifying setup steps and updating Fastlane descriptions.
Some checks failed
Deploy Flutter to Firebase (Mac) / deploy-android (push) Failing after 22s
Some checks failed
Deploy Flutter to Firebase (Mac) / deploy-android (push) Failing after 22s
This commit is contained in:
@@ -1,55 +1,40 @@
|
||||
name: Deploy Flutter to Firebase
|
||||
name: Deploy Flutter to Firebase (Mac)
|
||||
on:
|
||||
push:
|
||||
branches: release # Vous avez changé la branche ici, c'est noté
|
||||
branches: release
|
||||
|
||||
jobs:
|
||||
deploy-android:
|
||||
runs-on: ubuntu-latest
|
||||
# C'est ici que la magie opère : on cible VOTRE Mac
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '17'
|
||||
# Pas besoin d'installer Java, Flutter ou Android SDK : ils sont déjà sur votre Mac !
|
||||
|
||||
- name: Setup Android SDK
|
||||
uses: android-actions/setup-android@v3
|
||||
- name: Vérifier l'installation
|
||||
run: flutter doctor -v
|
||||
|
||||
- name: Setup Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: 'stable'
|
||||
cache: false
|
||||
|
||||
- name: Accept Android Licenses
|
||||
run: yes | flutter doctor --android-licenses || true
|
||||
|
||||
- name: Setup Ruby (pour Fastlane)
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '3.3'
|
||||
bundler-cache: true
|
||||
- name: Installer les dépendances
|
||||
run: flutter pub get
|
||||
|
||||
- name: Créer le fichier .env
|
||||
run: echo "${{ secrets.ENV_FILE }}" > .env
|
||||
|
||||
- name: Créer le fichier Auth Google
|
||||
- name: Créer les identifiants Firebase
|
||||
run: echo "${{ secrets.FIREBASE_CREDENTIALS }}" > ./android/firebase_credentials.json
|
||||
|
||||
- name: Créer key.properties
|
||||
run: echo "${{ secrets.ANDROID_KEY_PROPERTIES }}" > ./android/key.properties
|
||||
|
||||
- name: Lancer Fastlane Android
|
||||
- name: Lancer Fastlane
|
||||
working-directory: ./android
|
||||
env:
|
||||
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||
FIREBASE_ANDROID_APP_ID: ${{ secrets.FIREBASE_ANDROID_APP_ID }}
|
||||
# --- C'EST ICI LA CORRECTION CRITIQUE POUR LA MÉMOIRE ---
|
||||
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-Xmx3072m"
|
||||
# Plus besoin de limiter la RAM, votre Mac est puissant !
|
||||
run: |
|
||||
bundle install
|
||||
bundle exec fastlane deploy_firebase
|
||||
Reference in New Issue
Block a user