Installs an App Store Connect API key file on the runner and outputs the issuer ID, key ID, and file path of the AuthKey file.
- name: Install App Store Connect API Key
id: install-asc-api-key
uses: shapehq/actions/install-asc-api-key@v1
with:
op-asc-key-issuer-id-reference: op://My Vault/My App Store Connect API Key/Issuer ID
op-asc-key-id-reference: op://My Vault/My App Store Connect API Key/Key ID
op-asc-key-file-reference: op://My Vault/My App Store Connect API Key/AuthKey.p8You may optionally pass the output-asc-key-file-directory parameter to specify the directory in which to store the AuthKey file. This defaults to the current directory.
- name: Install App Store Connect API Key
id: install-asc-api-key
uses: shapehq/actions/install-asc-api-key@v1
with:
op-asc-key-issuer-id-reference: op://My Vault/My App Store Connect API Key/Issuer ID
op-asc-key-id-reference: op://My Vault/My App Store Connect API Key/Key ID
op-asc-key-file-reference: op://My Vault/My App Store Connect API Key/AuthKey.p8
output-asc-key-file-directory: ./private_keysThe action has the following outputs:
| Name | Description |
|---|---|
| issuer_id | The issuer ID. |
| key_id | The key ID. |
| key_filename | The name of the stored AuthKey file. This will be on the format AuthKey_[KeyID].p8. |
| key_file_path | The file path to the AuthKey. |
The outputs can be used to access the API key. The following example shows how the outputs can be passed to Fastlane.
- name: Fastlane
run: bundle exec fastlane build_appstore
env:
ASC_API_KEY_ISSUER_ID: ${{ steps.install-asc-api-key.outputs.issuer-id }}
ASC_API_KEY_ID: ${{ steps.install-asc-api-key.outputs.key-id }}
ASC_API_KEY: ${{ steps.install-asc-api-key.outputs.key-file-path }}