From aa376c74998d86ab9570dc0d178a6bd1ff0be00c Mon Sep 17 00:00:00 2001 From: Jagandeep Brar Date: Sat, 2 Apr 2022 18:44:48 -0400 Subject: [PATCH] chore(ci): pass ASC keys to macOS build workflow --- .github/workflows/build_macos.yml | 12 ++++++++++++ .github/workflows/release.yml | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/build_macos.yml b/.github/workflows/build_macos.yml index 02e51b9a..a3ba9237 100644 --- a/.github/workflows/build_macos.yml +++ b/.github/workflows/build_macos.yml @@ -12,6 +12,14 @@ on: required: true APPLE_ITC_TEAM_ID: required: true + APPLE_STORE_CONNECT_ISSUER_ID: + required: true + APPLE_STORE_CONNECT_KEY: + required: true + APPLE_STORE_CONNECT_KEY_FILEPATH: + required: true + APPLE_STORE_CONNECT_KEY_ID: + required: true APPLE_TEAM_ID: required: true FIREBASE_OPTIONS: @@ -133,6 +141,7 @@ jobs: - name: Install Secrets working-directory: ${{ github.workspace }} run: | + echo ${{ secrets.APPLE_STORE_CONNECT_KEY }} | base64 --decode > macos/${{ secrets.APPLE_STORE_CONNECT_KEY_FILEPATH }} echo ${{ secrets.FIREBASE_OPTIONS }} | base64 --decode > lib/firebase_options.dart - name: Setup SSH Agent @@ -168,6 +177,9 @@ jobs: env: APPLE_ID: ${{ secrets.APPLE_ID }} APPLE_ITC_TEAM_ID: ${{ secrets.APPLE_ITC_TEAM_ID }} + APPLE_STORE_CONNECT_ISSUER_ID: ${{ secrets.APPLE_STORE_CONNECT_ISSUER_ID }} + APPLE_STORE_CONNECT_KEY_FILEPATH: ${{ secrets.APPLE_STORE_CONNECT_KEY_FILEPATH }} + APPLE_STORE_CONNECT_KEY_ID: ${{ secrets.APPLE_STORE_CONNECT_KEY_ID }} APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }} MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b0b5659..fc10b472 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -93,6 +93,10 @@ jobs: secrets: APPLE_ID: ${{ secrets.APPLE_ID }} APPLE_ITC_TEAM_ID: ${{ secrets.APPLE_ITC_TEAM_ID }} + APPLE_STORE_CONNECT_ISSUER_ID: ${{ secrets.APPLE_STORE_CONNECT_ISSUER_ID }} + APPLE_STORE_CONNECT_KEY: ${{ secrets.APPLE_STORE_CONNECT_KEY }} + APPLE_STORE_CONNECT_KEY_FILEPATH: ${{ secrets.APPLE_STORE_CONNECT_KEY_FILEPATH }} + APPLE_STORE_CONNECT_KEY_ID: ${{ secrets.APPLE_STORE_CONNECT_KEY_ID }} APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} FIREBASE_OPTIONS: ${{ secrets.FIREBASE_OPTIONS }} MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }}