Skip to content

Commit

Permalink
Test CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-pod committed Jan 5, 2022
1 parent 85e756f commit e1daccf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
- name: Bundle install
run: bundle install

- name: Prepare API_KEY
env:
AUTHENTICATION_KEY_CONTENT: ${{ secrets.AUTHENTICATION_KEY_CONTENT }}
run: echo "$AUTHENTICATION_KEY_CONTENT" > AuthKey.p8

- name: Build app
env:
LC_ALL: en_US.UTF-8
Expand All @@ -21,6 +26,10 @@ jobs:
TEAM_ID: ${{ secrets.TEAM_ID }}
run: bundle exec fastlane release_to_ipa

- name: Cleanup API_KEY
if: always()
run: rm -rf AuthKey.p8

- name: Release
env:
LC_ALL: en_US.UTF-8
Expand Down
3 changes: 2 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ lane :release_to_ipa do
key_content: ENV['AUTHENTICATION_KEY_CONTENT'],
in_house: false
)
auth_key_path = sh("pwd").gsub("\n",'') + "/../AuthKey.p8"
build_app(
scheme: "CloudSignedExample",
configuration: "Release",
Expand All @@ -44,7 +45,7 @@ lane :release_to_ipa do
"signingStyle" => "automatic",
"manageAppVersionAndBuildNumber" => false
},
xcargs: "-allowProvisioningUpdates",
xcargs: "-allowProvisioningUpdates -authenticationKeyIssuerID #{ENV['AUTHENTICATION_KEY_ISSUER_ID']} -authenticationKeyID #{ENV['AUTHENTICATION_KEY_ID']} -authenticationKeyPath \"#{auth_key_path}\"",
output_name: "CloudSignedExample.ipa"
)
end
Expand Down

0 comments on commit e1daccf

Please sign in to comment.