11name : Sign MacOS Binaries
22
33on :
4- push :
5- branches :
6- - sign-macos
74 workflow_dispatch :
8- inputs :
9- artifact-pattern :
10- description : ' Pattern for artifacts to download (default: runbooks_darwin_*)'
11- required : false
12- type : string
13- default : ' runbooks_darwin_*'
14- upload-artifact-name :
15- description : ' Name for the uploaded signed artifacts'
16- required : false
17- type : string
18- default : ' macos-signed-files'
195 workflow_call :
20- inputs :
21- artifact-pattern :
22- description : ' Pattern for artifacts to download (default: runbooks_darwin_*)'
23- required : false
24- type : string
25- default : ' runbooks_darwin_*'
26- upload-artifact-name :
27- description : ' Name for the uploaded signed artifacts'
28- required : false
29- type : string
30- default : ' macos-signed-files'
316
327jobs :
338 sign-macos :
3611 env :
3712 MISE_PROFILE : cicd
3813 GON_VERSION : v0.0.37
39- # Use inputs if available (workflow_dispatch/workflow_call), otherwise use defaults
40- ARTIFACT_PATTERN : ${{ inputs.artifact-pattern || 'runbooks-darwin-*' }}
41- UPLOAD_ARTIFACT_NAME : ${{ inputs.upload-artifact-name || 'macos-signed-files' }}
4214
4315 steps :
4416 - name : Checkout code
4719 - name : Download macOS build artifacts
4820 uses : actions/download-artifact@v6
4921 with :
50- pattern : ${{ env.ARTIFACT_PATTERN }}
22+ pattern : runbooks-darwin-*
5123 path : artifacts/
5224
5325 - name : Prepare build artifacts
9668 }
9769 done
9870
99- - name : Upload Signed MacOS Binaries
71+ - name : Upload Signed MacOS Binaries (darwin-amd64)
10072 uses : actions/upload-artifact@v5
10173 with :
102- name : ${{ env.UPLOAD_ARTIFACT_NAME }}
103- path : bin/runbooks_darwin_*
104- if-no-files-found : error
74+ name : runbooks-darwin-amd64
75+ path : bin/runbooks_darwin_amd64
76+ if-no-files-found : error
77+ overwrite : true
78+
79+ - name : Upload Signed MacOS Binaries (darwin-arm64)
80+ uses : actions/upload-artifact@v5
81+ with :
82+ name : runbooks-darwin-arm64
83+ path : bin/runbooks_darwin_arm64
84+ if-no-files-found : error
85+ overwrite : true
0 commit comments