Skip to content

Commit

Permalink
fix: write api key
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisakura committed Jul 23, 2024
1 parent 11c12e0 commit cfad2f9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,19 @@ 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: |
pnpm electron-builder --${{ matrix.platform }} --publish always
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 }}

0 comments on commit cfad2f9

Please sign in to comment.