ci: Add .env file creation for Google Maps API keys and fix Android package name in deploy workflow.
Some checks failed
Deploy Android to Play Store / build-and-deploy (push) Failing after 26m39s
Some checks failed
Deploy Android to Play Store / build-and-deploy (push) Failing after 26m39s
This commit is contained in:
@@ -21,7 +21,6 @@ jobs:
|
||||
distribution: 'zulu'
|
||||
java-version: '17'
|
||||
|
||||
|
||||
- name: Setup Android SDK
|
||||
uses: android-actions/setup-android@v3
|
||||
|
||||
@@ -38,8 +37,7 @@ jobs:
|
||||
|
||||
# 5. Reconstruire le Keystore depuis le Secret Base64
|
||||
- name: Decode Keystore
|
||||
run: |
|
||||
echo "${{ secrets.ANDROID_KEYSTORE_BASE64 }}" | base64 --decode > android/app/upload-keystore.jks
|
||||
run: echo "${{ secrets.ANDROID_KEYSTORE_BASE64 }}" | base64 --decode > android/app/upload-keystore.jks
|
||||
|
||||
# 6. Créer le fichier key.properties
|
||||
- name: Create key.properties
|
||||
@@ -49,19 +47,25 @@ jobs:
|
||||
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/key.properties
|
||||
echo "storeFile=upload-keystore.jks" >> android/key.properties
|
||||
|
||||
# --- NOUVELLE ÉTAPE : Création du fichier .env ---
|
||||
- name: Create .env file
|
||||
run: |
|
||||
echo "GOOGLE_MAPS_API_KEY=${{ secrets.GOOGLE_MAPS_API_KEY }}" > .env
|
||||
echo "GOOGLE_MAPS_API_KEY_ANDROID=${{ secrets.GOOGLE_MAPS_API_KEY_ANDROID }}" >> .env
|
||||
echo "GOOGLE_MAPS_API_KEY_IOS=${{ secrets.GOOGLE_MAPS_API_KEY_IOS }}" >> .env
|
||||
# -------------------------------------------------
|
||||
|
||||
# 7. Compiler l'AppBundle (.aab)
|
||||
- name: Build AppBundle
|
||||
run: flutter build appbundle --release
|
||||
|
||||
|
||||
|
||||
# 8. Envoyer sur le Play Store
|
||||
# Cette action remplace Fastlane manuel, c'est plus simple dans Gitea
|
||||
- name: Upload to Play Store
|
||||
uses: r0adkll/upload-google-play@v1
|
||||
with:
|
||||
serviceAccountJsonPlainText: ${{ secrets.PLAY_STORE_JSON }}
|
||||
packageName: be.devdayronvl.travel_mate
|
||||
packageName: be.davdayronxl.travel_mate
|
||||
releaseFiles: build/app/outputs/bundle/release/app-release.aab
|
||||
track: internal # 'internal' = Test interne, 'alpha' = Test fermé
|
||||
status: completed
|
||||
Reference in New Issue
Block a user