ci: add Android SDK setup and license acceptance to the Android deployment workflow.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
name: Deploy Flutter to Firebase
|
||||
on:
|
||||
push:
|
||||
branches: release
|
||||
branches: [ main, master ]
|
||||
|
||||
jobs:
|
||||
deploy-android:
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user