From 927dfc3b296cebb1b2205a8cdce7cecdcdb1501c Mon Sep 17 00:00:00 2001 From: Sasikanth Miriyampalli Date: Mon, 11 Sep 2023 23:42:32 +0530 Subject: [PATCH] Install App Store private API key when building iOS artifacts in CI --- .github/workflows/ios_prod_release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ios_prod_release.yml b/.github/workflows/ios_prod_release.yml index d073e6da6..342957ec8 100644 --- a/.github/workflows/ios_prod_release.yml +++ b/.github/workflows/ios_prod_release.yml @@ -28,6 +28,14 @@ jobs: distribution: zulu cache: 'gradle' + - name: Install private API key P8 + env: + PRIVATE_API_KEY_BASE64: ${{ secrets.APP_STORE_API_PRIVATE_KEY }} + API_KEY: ${{ secrets.APP_STORE_KEY_ID }} + run: | + mkdir -p ~/private_keys + echo -n "$PRIVATE_API_KEY_BASE64" | base64 --decode --output ~/private_keys/AuthKey_$API_KEY.p8 + - name: Install the Apple certificate and provisioning profile env: BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}