File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments