This commit is contained in:
@@ -23,31 +23,36 @@ 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 (Mode Local Strict)
|
- name: Lancer Fastlane (Avec Ruby Homebrew Forcé)
|
||||||
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: |
|
||||||
# --- 🛡️ PROTECTION ANTI-SYSTÈME 🛡️ ---
|
# --- 🚨 INJECTION DU CHEMIN RUBY 🚨 ---
|
||||||
# On définit un dossier local pour TOUS les gems (Bundler inclus)
|
# On force le système à regarder dans ton dossier Homebrew EN PREMIER
|
||||||
# Cela empêche physiquement le script d'aller voir dans /Library/Ruby/Gems/2.6.0
|
# C'est ce qui permet d'éviter le Ruby 2.6 du système
|
||||||
|
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
|
||||||
|
|
||||||
|
# Preuve que ça marche (ça doit afficher Ruby 3.x ou 4.x dans les logs)
|
||||||
|
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
|
||||||
|
|
||||||
echo "📂 Dossier des Gems forcé à : $GEM_HOME"
|
|
||||||
|
|
||||||
# Nettoyage de sécurité
|
# Nettoyage de sécurité
|
||||||
rm -rf vendor
|
rm -rf vendor Gemfile.lock
|
||||||
rm -f Gemfile.lock
|
|
||||||
|
|
||||||
echo "⬇️ Installation de Bundler (en local)..."
|
# Installation
|
||||||
# Cette commande va maintenant écrire dans ./android/vendor/bundle et non dans le système
|
echo "Installation de Bundler..."
|
||||||
gem install bundler
|
gem install bundler
|
||||||
|
|
||||||
echo "📦 Installation des dépendances..."
|
echo "Installation des dépendances..."
|
||||||
bundle install --jobs 4 --retry 3
|
bundle install
|
||||||
|
|
||||||
echo "🚀 Lancement..."
|
echo "Lancement..."
|
||||||
bundle exec fastlane deploy_firebase
|
bundle exec fastlane deploy_firebase
|
||||||
Reference in New Issue
Block a user