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
|
name: Deploy Flutter to Firebase
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: release
|
branches: [ main, master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-android:
|
deploy-android:
|
||||||
@@ -16,11 +16,19 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
|
|
||||||
|
# --- AJOUT INDISPENSABLE : INSTALLER LE SDK ANDROID ---
|
||||||
|
- name: Setup Android SDK
|
||||||
|
uses: android-actions/setup-android@v3
|
||||||
|
|
||||||
- name: Setup Flutter
|
- name: Setup Flutter
|
||||||
uses: subosito/flutter-action@v2
|
uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
channel: 'stable'
|
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)
|
- name: Setup Ruby (pour Fastlane)
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user