diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 3bac122..d76e08f 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -89,12 +89,17 @@ jobs: gem install bundler -v 2.4.22 bundle install + - name: Set up Fastlane API Key + run: | + echo "${{ secrets.APP_STORE_CONNECT_PRIVATE_KEY }}" > ios/fastlane/AuthKey.p8 + env: + APP_STORE_CONNECT_PRIVATE_KEY: ${{ secrets.APP_STORE_CONNECT_PRIVATE_KEY }} + - name: Run Fastlane Lane run: | cd ios bundle exec fastlane beta env: - APP_STORE_CONNECT_PRIVATE_KEY: ${{ secrets.APP_STORE_CONNECT_PRIVATE_KEY }} APP_STORE_CONNECT_KEY_IDENTIFIER: ${{ secrets.APP_STORE_CONNECT_KEY_IDENTIFIER }} APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }} DEVELOPER_APP_ID: ${{ secrets.DEVELOPER_APP_ID }} diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index cc9705e..09ec409 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -43,14 +43,10 @@ platform :ios do workspace = "CkOnboardinApp.xcworkspace", ensure_temp_keychain(keychain_name, keychain_password) - puts "APPLE_KEY_ID: #{APPLE_KEY_ID}" - puts "APPLE_ISSUER_ID: #{APPLE_ISSUER_ID}" - puts "APPLE_KEY_CONTENT: #{APPLE_KEY_CONTENT}" - api_key = app_store_connect_api_key( key_id: APPLE_KEY_ID, issuer_id: APPLE_ISSUER_ID, - key_content: APPLE_KEY_CONTENT, + key_filepath: "fastlane/AuthKey.p8", is_key_content_base64: true, duration: 1200, in_house: false