Skip to content

Commit 5feda15

Browse files
committed
Add Apple API key installation and codesigning certificate setup in release workflow
- Introduced steps to install the Apple API key and codesigning certificate for macOS platforms. - Enhanced the release workflow to support secure handling of Apple credentials for code signing. - Updated environment variables to include necessary Apple signing information for Tauri builds.
1 parent e56bfdc commit 5feda15

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,34 @@ jobs:
9696
- name: Install dependencies
9797
run: bun install
9898

99+
- name: Install Apple API key
100+
if: matrix.platform == 'macos-latest' || matrix.platform == 'macos-15-intel'
101+
run: |
102+
mkdir -p ~/.appstoreconnect/private_keys/
103+
cd ~/.appstoreconnect/private_keys/
104+
echo ${{ secrets.APPLE_API_KEY_BASE64 }} >> AuthKey_${{ secrets.APPLE_API_KEY }}.p8.base64
105+
base64 --decode -i AuthKey_${{ secrets.APPLE_API_KEY }}.p8.base64 -o AuthKey_${{ secrets.APPLE_API_KEY }}.p8
106+
rm AuthKey_${{ secrets.APPLE_API_KEY }}.p8.base64
107+
108+
- name: Install Codesigning Certificate
109+
if: matrix.platform == 'macos-latest' || matrix.platform == 'macos-15-intel'
110+
uses: apple-actions/import-codesign-certs@v3
111+
with:
112+
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }}
113+
p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
114+
99115
- uses: tauri-apps/tauri-action@v0
100116
env:
101117
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102118
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
103119
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
120+
ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }}
121+
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
122+
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
123+
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
124+
APPLE_PROVIDER_SHORT_NAME: ${{ secrets.APPLE_PROVIDER_SHORT_NAME }}
125+
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
126+
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
104127
with:
105128
projectPath: tauri
106129
tagName: v__VERSION__

0 commit comments

Comments
 (0)