Skip to content

Commit

Permalink
chore(): back to fastlane api key
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawqss committed Sep 28, 2024
1 parent e8ed5e6 commit 7946f92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 1 addition & 5 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7946f92

Please sign in to comment.