From d8c317af95af187da67be16fdfd5d14dc25a66d4 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 | 8 +++++++- Scripts/configure-environment.sh | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 5359a76e..25bfcca6 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 }} + run: make archive-demo-${{ matrix.platform }} diff --git a/Scripts/configure-environment.sh b/Scripts/configure-environment.sh index 9b2f06a5..0fe62567 100755 --- a/Scripts/configure-environment.sh +++ b/Scripts/configure-environment.sh @@ -11,4 +11,5 @@ fi mkdir -p ../Configuration echo "$apple_account_info_b64" | base64 --decode > ../Configuration/.env +cat ../Configuration/.env echo "$apple_api_key_p8" > ../Configuration/AppStoreConnect_API_Key.p8