diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index e00d6ed..bff834b 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -10,13 +10,19 @@ platform :ios do in_house: false ) + # Helper method to encode GitHub token + def encoded_github_token + require 'base64' + Base64.strict_encode64("x-access-token:#{ENV['MATCH_GITHUB_TOKEN']}") + end + match( type: "appstore", readonly: true, api_key: api_key, git_branch: "master", #password: ENV['MATCH_PASSWORD'], # will be picked up from environment variables - git_basic_authorization: ENV['MATCH_GITHUB_TOKEN'] + git_basic_authorization: encoded_github_token ) build_ios_app(