diff --git a/.gitea/workflows/deploy-android.yaml b/.gitea/workflows/deploy-android.yaml index 5e01522..0580cb4 100644 --- a/.gitea/workflows/deploy-android.yaml +++ b/.gitea/workflows/deploy-android.yaml @@ -4,7 +4,7 @@ run-name: Deploy ${{ gitea.actor }} to Internal Track 🚀 on: push: branches: - - release # Se déclenche uniquement sur la branche release + - release # Se déclenche uniquement sur la branche release jobs: build-and-deploy: @@ -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,11 +47,17 @@ 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 @@ -61,7 +65,7 @@ jobs: 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 \ No newline at end of file