diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14278303..2db9a7b8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,6 +44,12 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Write API Key + if: ${{ matrix.platform == 'mac' }} + run: echo "$API_KEY" > apple.p8 + env: + API_KEY: ${{ secrets.APPLE_API_KEY }} + - name: Run Electron Builder if: ${{ matrix.platform == 'mac' }} run: | @@ -51,6 +57,6 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} CSC_LINK: ${{ secrets.APPLE_SIGNING_CERT }} - APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }} + APPLE_API_KEY: apple.p8 APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }} APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}