Generate token to use App Store Connect API for GitHub Actions.
The token is valid for 20 minutes after acquiring.
See official document for details.
- name: Get token
id: asc
uses: yuki0n0/action-appstoreconnect-token@v1.0
with:
issuer id: 00000000-0000-0000-0000-000000000000
key id: AAAAAAAAAA
key: ${{ secrets.KEY }}
- name: Use token
run: |
JSON=`curl -sS -H "Authorization:Bearer ${{ steps.asc.outputs.token }}" https://api.appstoreconnect.apple.com/v1/apps`
All are required and can get from App Store Connect.
See https://developer.apple.com/documentation/appstoreconnectapi/creating_api_keys_for_app_store_connect_api for details.
UUID like 00000000-0000-0000-0000-000000000000
.
Value like AAAAAAAAAA
.
Download .p8
file and Set its contents to secret value on GitHub.
See https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets for details.