From 020fa8823d528d33db3d09f372987b52f8491b17 Mon Sep 17 00:00:00 2001 From: Van Leemput Dayron Date: Tue, 9 Dec 2025 14:47:04 +0100 Subject: [PATCH] ci: add Android SDK setup and license acceptance to the Android deployment workflow. --- .gitea/workflows/deploy-android.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy-android.yaml b/.gitea/workflows/deploy-android.yaml index 32a9f02..8086339 100644 --- a/.gitea/workflows/deploy-android.yaml +++ b/.gitea/workflows/deploy-android.yaml @@ -1,11 +1,11 @@ name: Deploy Flutter to Firebase on: push: - branches: release + branches: [ main, master ] jobs: deploy-android: - runs-on: ubuntu-latest + runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 @@ -16,11 +16,19 @@ jobs: distribution: 'temurin' java-version: '17' + # --- AJOUT INDISPENSABLE : INSTALLER LE SDK ANDROID --- + - name: Setup Android SDK + uses: android-actions/setup-android@v3 + - name: Setup Flutter uses: subosito/flutter-action@v2 with: channel: 'stable' - cache: false + cache: false # On garde le cache désactivé pour éviter le timeout + + # --- AJOUT CONSEILLÉ : ACCEPTER LES LICENCES --- + - name: Accept Android Licenses + run: yes | flutter doctor --android-licenses - name: Setup Ruby (pour Fastlane) uses: ruby/setup-ruby@v1