From 925edff832f32275f2c692d78333ca3de681a2ae Mon Sep 17 00:00:00 2001 From: Walid Kayhal <3347810+waliid@users.noreply.github.com> Date: Thu, 21 Nov 2024 18:14:02 +0100 Subject: [PATCH] Add a step for the project configuration --- .github/workflows/pull-request.yml | 6 ++++++ Scripts/configure-environment.sh | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 5359a76e..c5d88b33 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -55,5 +55,11 @@ jobs: Scripts/add-apple-certificate.sh \ ${{ secrets.SRGSSR_APPLE_DEV_CERTIFICATE_B64 }} + - name: Configure environment + run: | + Scripts/configure-environment.sh \ + ${{ secrets.APP_STORE_CONNECT_API_KEY_P8 }} \ + ${{ secrets.APPLE_ACCOUNT_INFO_B64 }} + - name: Archive the demo run: sleep 3600 #make archive-demo-${{ matrix.platform }} diff --git a/Scripts/configure-environment.sh b/Scripts/configure-environment.sh index 9b2f06a5..267fd861 100755 --- a/Scripts/configure-environment.sh +++ b/Scripts/configure-environment.sh @@ -9,6 +9,6 @@ then exit 1 fi -mkdir -p ../Configuration -echo "$apple_account_info_b64" | base64 --decode > ../Configuration/.env -echo "$apple_api_key_p8" > ../Configuration/AppStoreConnect_API_Key.p8 +mkdir -p Configuration +echo "$apple_account_info_b64" | base64 --decode > Configuration/.env +echo "$apple_api_key_p8" > Configuration/AppStoreConnect_API_Key.p8