keep using match
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 1m43s
Build and release debug APK / Build APK (pull_request) Failing after 3m56s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 15s

This commit is contained in:
Remy Moll 2024-12-14 18:41:11 +01:00
parent cbada7e4a4
commit 861a0b3570
2 changed files with 13 additions and 24 deletions

View File

@ -41,6 +41,12 @@ jobs:
secret/release IOS_ASC_KEY_ID | IOS_ASC_KEY_ID ; secret/release IOS_ASC_KEY_ID | IOS_ASC_KEY_ID ;
secret/release IOS_ASC_ISSUER_ID | IOS_ASC_ISSUER_ID ; secret/release IOS_ASC_ISSUER_ID | IOS_ASC_ISSUER_ID ;
secret/release IOS_ASC_KEY_P8 | IOS_ASC_KEY_P8 ; secret/release IOS_ASC_KEY_P8 | IOS_ASC_KEY_P8 ;
secret/release IOS_MATCH_REPO_SSH_KEY_BASE64 | IOS_MATCH_REPO_SSH_KEY_BASE64 ;
- name: Setup SSH key for match git repo
run: echo "$MATCH_REPO_SSH_KEY" | base64 --decode > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
env:
MATCH_REPO_SSH_KEY: ${{ steps.load-secrets.outputs.IOS_MATCH_REPO_SSH_KEY_BASE64 }}
- name: Install fastlane - name: Install fastlane
run: bundle install run: bundle install

View File

@ -54,23 +54,12 @@ platform :ios do
build_name = ENV["BUILD_NAME"] build_name = ENV["BUILD_NAME"]
build_number = ENV["BUILD_NUMBER"] build_number = ENV["BUILD_NUMBER"]
app_identifier = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
load_asc_api_token load_asc_api_token
prepare_signing
profile_name = "App Provisioning Profile" # replace with the name of the profile to use for the build sync_code_signing(
output_name = "example-iOS" # specify the name of the .ipa file to generate api_key: api_key,
export_method = "app-store" # specify the export method type: "testflight",
readonly: true,
# turn off automatic signing during build so correct code signing identity is guaranteed to be used
update_code_signing_settings(
use_automatic_signing: false,
targets: ["main-target"], # specify which targets to update code signing settings for
code_sign_identity: "Apple Distribution", # replace with name of code signing identity if different
bundle_identifier: app_identifier,
profile_name: profile_name,
build_configurations: ["Release"] # only toggle code signing settings for Release configurations
) )
@ -87,10 +76,6 @@ platform :ios do
build_app( build_app(
skip_build_archive: true, skip_build_archive: true,
archive_path: "../build/ios/archive/Runner.xcarchive" archive_path: "../build/ios/archive/Runner.xcarchive"
provisioningProfiles: {
app_identifier => profile_name
}
) )
upload_to_testflight upload_to_testflight
@ -99,11 +84,11 @@ platform :ios do
desc "Deploy a new version as a full release" desc "Deploy a new version as a full release"
lane :deploy_release do lane :deploy_release do
build_name = ENV["BUILD_NAME"] build_name = ENV["BUILD_NAME"]
build_number = ENV["BUILD_NUMBER"] build_number = ENV["BUILD_NUMBER"]
api_key = lane_context[SharedValues::APP_STORE_CONNECT_API_KEY] load_asc_api_token
sync_code_signing( sync_code_signing(
api_key: api_key, api_key: api_key,
type: "appstore", type: "appstore",
@ -136,5 +121,3 @@ platform :ios do
# automatically release the app after review # automatically release the app after review
) )
end end