From 2b039927907f68bae0ddeae29a1fb751a8f8cb18 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Sun, 27 Apr 2025 16:54:02 +0200 Subject: [PATCH] or like this? --- .gitea/workflows/workflow_build-app-ios.yaml | 4 ++++ frontend/ios/fastlane/Fastfile | 20 -------------------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/workflow_build-app-ios.yaml b/.gitea/workflows/workflow_build-app-ios.yaml index 5e91b8e..3fcd41e 100644 --- a/.gitea/workflows/workflow_build-app-ios.yaml +++ b/.gitea/workflows/workflow_build-app-ios.yaml @@ -72,6 +72,10 @@ jobs: env: MATCH_REPO_SSH_KEY: ${{ secrets.IOS_MATCH_REPO_SSH_KEY_BASE64 }} + - name: Replace API Key from secret + run: | + sed -i '' 's/IOS_GOOGLE_MAPS_API_KEY/${{ secrets.IOS_GOOGLE_MAPS_API_KEY }}/g' Runner/AppDelegate.swift + - name: Run fastlane lane run: bundle exec fastlane deploy_${{ inputs.build_type }} env: diff --git a/frontend/ios/fastlane/Fastfile b/frontend/ios/fastlane/Fastfile index 6a77d26..329285f 100644 --- a/frontend/ios/fastlane/Fastfile +++ b/frontend/ios/fastlane/Fastfile @@ -28,17 +28,6 @@ platform :ios do readonly: true, ) - # replace secrets by real values, the stupid way - sh( - "sed", - "-i", - "''", - "s/IOS_GOOGLE_MAPS_API_KEY/#{ENV["IOS_GOOGLE_MAPS_API_KEY"]}/g", - "../Runner/AppDelegate.swift" - ) - - - sh( "flutter", "build", @@ -74,15 +63,6 @@ platform :ios do readonly: true, ) - # replace secrets by real values, the stupid way - sh( - "sed", - "-i", - "''", - "s/IOS_GOOGLE_MAPS_API_KEY/#{ENV["IOS_GOOGLE_MAPS_API_KEY"]}/g", - "../Runner/AppDelegate.swift" - ) - sh( "flutter", "build",