From 31fe3a4260d90b4a48d6ee301c09dec83ba88d29 Mon Sep 17 00:00:00 2001 From: Van Leemput Dayron Date: Sat, 10 Jan 2026 23:33:36 +0100 Subject: [PATCH] test 25 --- .gitea/workflows/deploy-ios.yaml | 31 ++++++++++--------------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/deploy-ios.yaml b/.gitea/workflows/deploy-ios.yaml index b61e2cd..1946921 100644 --- a/.gitea/workflows/deploy-ios.yaml +++ b/.gitea/workflows/deploy-ios.yaml @@ -69,43 +69,32 @@ 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 - - # 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 - # 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) + # RECHERCHE ULTRA-LARGE (On cherche depuis la racine du projet) + echo "🔍 Recherche de l'IPA dans tout le projet..." + IPA_PATH=$(find .. -name "*.ipa" -not -path "*/Pods/*" | head -n 1) if [ -z "$IPA_PATH" ]; then - echo "❌ ERREUR : Fichier IPA introuvable" + echo "❌ ERREUR : Aucun fichier .ipa trouvé." + echo "📁 Contenu du dossier build actuel :" + ls -R ../build || echo "Le dossier build est vide ou inexistant" exit 1 fi - # 6. Envoi final - echo "🚀 Téléchargement de l'IPA ($IPA_PATH) vers Firebase..." + echo "📦 IPA trouvée : $IPA_PATH" + + echo "🚀 Envoi final 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:"Build TravelMate stable - Xcode 26.2" + release_notes: "TravelMate iOS stable - Xcode 26.2" - name: Nettoyage (Post-build) if: always()