This commit is contained in:
@@ -23,36 +23,39 @@ jobs:
|
|||||||
echo "${{ secrets.FIREBASE_CREDENTIALS }}" > ./android/firebase_credentials.json
|
echo "${{ secrets.FIREBASE_CREDENTIALS }}" > ./android/firebase_credentials.json
|
||||||
echo "${{ secrets.ANDROID_KEY_PROPERTIES }}" > ./android/key.properties
|
echo "${{ secrets.ANDROID_KEY_PROPERTIES }}" > ./android/key.properties
|
||||||
|
|
||||||
- name: Lancer Fastlane (Avec Ruby Homebrew Forcé)
|
- name: Lancer Fastlane (Réparation Dépendances)
|
||||||
working-directory: ./android
|
working-directory: ./android
|
||||||
env:
|
env:
|
||||||
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||||
FIREBASE_ANDROID_APP_ID: ${{ secrets.FIREBASE_ANDROID_APP_ID }}
|
FIREBASE_ANDROID_APP_ID: ${{ secrets.FIREBASE_ANDROID_APP_ID }}
|
||||||
run: |
|
run: |
|
||||||
# --- 🚨 INJECTION DU CHEMIN RUBY 🚨 ---
|
# 1. On active le bon Ruby (ça marche enfin !)
|
||||||
# On force le système à regarder dans ton dossier Homebrew EN PREMIER
|
|
||||||
# C'est ce qui permet d'éviter le Ruby 2.6 du système
|
|
||||||
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
|
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
|
||||||
|
echo "✅ Ruby actif : $(ruby -v)"
|
||||||
|
|
||||||
# Preuve que ça marche (ça doit afficher Ruby 3.x ou 4.x dans les logs)
|
# 2. Config pour installer les gems en local
|
||||||
echo "Version de Ruby active :"
|
|
||||||
ruby -v
|
|
||||||
|
|
||||||
# --- Configuration Locale des Gems ---
|
|
||||||
# On installe tout dans un dossier local pour éviter les "Permission denied"
|
|
||||||
export GEM_HOME=$PWD/vendor/bundle
|
export GEM_HOME=$PWD/vendor/bundle
|
||||||
export GEM_PATH=$PWD/vendor/bundle
|
export GEM_PATH=$PWD/vendor/bundle
|
||||||
export PATH=$GEM_HOME/bin:$PATH
|
export PATH=$GEM_HOME/bin:$PATH
|
||||||
|
|
||||||
# Nettoyage de sécurité
|
# 3. NETTOYAGE TOTAL
|
||||||
rm -rf vendor Gemfile.lock
|
rm -rf vendor Gemfile.lock .bundle
|
||||||
|
|
||||||
# Installation
|
# --- ♻️ RÉGÉNÉRATION DU GEMFILE ♻️ ---
|
||||||
echo "Installation de Bundler..."
|
# Ton Gemfile actuel semble demander des versions périmées.
|
||||||
|
# On l'écrase pour forcer l'utilisation des dernières versions compatibles Ruby 3.4
|
||||||
|
echo "source 'https://rubygems.org'" > Gemfile
|
||||||
|
echo "gem 'fastlane'" >> Gemfile
|
||||||
|
|
||||||
|
echo "📝 Nouveau Gemfile généré pour forcer la mise à jour."
|
||||||
|
|
||||||
|
# 4. INSTALLATION
|
||||||
|
echo "⬇️ Installation de Bundler..."
|
||||||
gem install bundler
|
gem install bundler
|
||||||
|
|
||||||
echo "Installation des dépendances..."
|
echo "📦 Installation des gems (Dernières versions)..."
|
||||||
bundle install
|
# 'bundle update' va chercher les versions compatibles avec Ruby 3.4
|
||||||
|
bundle update --jobs 4
|
||||||
|
|
||||||
echo "Lancement..."
|
echo "🚀 Lancement..."
|
||||||
bundle exec fastlane deploy_firebase
|
bundle exec fastlane deploy_firebase
|
||||||
Reference in New Issue
Block a user