Skip to content

Commit fa20815

Browse files
committed
skip notarize for build test
1 parent 10681ac commit fa20815

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/build-workflow.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
required: false
99
default: true
1010
type: boolean
11+
notarize:
12+
description: 'Notarize macOS build'
13+
required: false
14+
default: false
15+
type: boolean
1116
secrets:
1217
APPLE_CERTIFICATE:
1318
required: false
@@ -126,6 +131,7 @@ jobs:
126131
APPLE_ID: ${{ secrets.APPLE_ID }}
127132
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
128133
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
134+
NOTARIZE: ${{ inputs.notarize }}
129135
run: |
130136
if [ -f "$HOME/Library/Keychains/build.keychain-db" ]; then
131137
security unlock-keychain -p "build" build.keychain

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
uses: ./.github/workflows/build-workflow.yml
1515
with:
1616
upload-artifacts: true
17+
notarize: true
1718
secrets:
1819
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
1920
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}

build/notarize.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ exports.default = async function notarizing(context) {
77
return;
88
}
99

10+
if (process.env.NOTARIZE !== "true") {
11+
console.log("Skipping notarization: NOTARIZE is not set to true");
12+
return;
13+
}
14+
1015
if (!process.env.APPLE_ID || !process.env.APPLE_APP_SPECIFIC_PASSWORD || !process.env.APPLE_TEAM_ID) {
1116
console.log("Skipping notarization: missing APPLE_ID, APPLE_APP_SPECIFIC_PASSWORD, or APPLE_TEAM_ID");
1217
return;

0 commit comments

Comments
 (0)