From a2c6cd1d4f111d363249fa4c62bc015a10e37f45 Mon Sep 17 00:00:00 2001 From: Van Leemput Dayron Date: Sat, 10 Jan 2026 23:26:05 +0100 Subject: [PATCH] test 24 --- .gitea/workflows/deploy-ios.yaml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/deploy-ios.yaml b/.gitea/workflows/deploy-ios.yaml index e34de5e..b61e2cd 100644 --- a/.gitea/workflows/deploy-ios.yaml +++ b/.gitea/workflows/deploy-ios.yaml @@ -69,32 +69,43 @@ jobs: env: FIREBASE_IOS_APP_ID: ${{ secrets.FIREBASE_IOS_APP_ID }} run: | + # 1. Configuration de l'environnement Ruby export PATH="/opt/homebrew/opt/ruby/bin:/opt/homebrew/bin:$PATH" gem install bundler -v 2.7.2 --no-document + # 2. On se place dans le dossier ios cd ios - bundle _2.7.2_ config set path 'vendor/bundle' - # Le Gemfile est déjà prêt grâce au build précédent, on installe juste + # 3. CREATION DU GEMFILE (Obligatoire à cet endroit) + echo "source 'https://rubygems.org'" > Gemfile + echo "gem 'fastlane', '>= 2.214.0'" >> Gemfile + echo "gem 'fastlane-plugin-firebase_app_distribution'" >> Gemfile + # Correctifs obligatoires pour Ruby 3.4 + echo "gem 'ostruct'" >> Gemfile + echo "gem 'nkf'" >> Gemfile + echo "gem 'abbrev'" >> Gemfile + echo "gem 'base64'" >> Gemfile + echo "gem 'csv'" >> Gemfile + + # 4. Configuration et installation + bundle _2.7.2_ config set path 'vendor/bundle' bundle _2.7.2_ install - # RECHERCHE DYNAMIQUE DE L'IPA (Pour éviter l'erreur de chemin) - # On cherche le fichier .ipa dans le dossier build et on stocke son chemin + # 5. Recherche de l'IPA (Générée par l'étape précédente) IPA_PATH=$(find ../build/ios/ipa -name "*.ipa" | head -n 1) - echo "📦 IPA trouvée ici : $IPA_PATH" - + if [ -z "$IPA_PATH" ]; then - echo "❌ ERREUR : Fichier IPA introuvable dans ../build/ios/ipa" - ls -R ../build/ios/ipa + echo "❌ ERREUR : Fichier IPA introuvable" exit 1 fi - echo "🚀 Envoi final vers Firebase..." + # 6. Envoi final + echo "🚀 Téléchargement de l'IPA ($IPA_PATH) vers Firebase..." bundle _2.7.2_ exec fastlane run firebase_app_distribution \ app:"$FIREBASE_IOS_APP_ID" \ ipa_path:"$IPA_PATH" \ service_credentials_file:"firebase_credentials.json" \ - release_notes:"TravelMate iOS - Xcode 26.2 Stable Build" + release_notes:"Build TravelMate stable - Xcode 26.2" - name: Nettoyage (Post-build) if: always()