Download provisioning profiles in release pipeline

This commit is contained in:
Conrad Kramer 2024-09-07 17:08:02 -07:00
parent 62a5739d86
commit fa1ef6fcda
4 changed files with 22 additions and 18 deletions

View file

@ -13,15 +13,18 @@ runs:
using: composite
steps:
- shell: bash
env:
FASTLANE_OPT_OUT_USAGE: 'YES'
run: |
APP_STORE_KEY=$(echo "${{ inputs.app-store-key }}" | jq -sR .)
cat << EOF > api-key.json
{
"key_id": "${{ inputs.app-store-key-id }}",
"issuer_id": "${{ inputs.app-store-key-issuer-id }}",
"key": "${{ inputs.app-store-key }}"
"key": $APP_STORE_KEY
}
EOF
fastlane sigh download_all --api_key_path api-key.json --download_xcode_profiles
fastlane sigh download_all --api_key_path api-key.json
rm -rf api-key.json

View file

@ -12,11 +12,8 @@ inputs:
archive-path:
description: Xcode archive path
required: true
destination:
description: The Xcode export destination. This can either be "export" or "upload"
required: true
method:
description: The Xcode export method. This can be one of app-store, validation, ad-hoc, package, enterprise, development, developer-id, or mac-application.
export-options:
description: The export options in JSON format
required: true
export-path:
description: The path to export the archive to
@ -29,8 +26,7 @@ runs:
run: |
echo "${{ inputs.app-store-key }}" > AuthKey_${{ inputs.app-store-key-id }}.p8
echo '{"destination":"${{ inputs.destination }}","method":"${{ inputs.method }}"}' \
| plutil -convert xml1 -o ExportOptions.plist -
echo '${{ inputs.export-options }}' | plutil -convert xml1 -o ExportOptions.plist -
xcodebuild \
-exportArchive \