@@ -54,24 +54,6 @@ inputs:
5454 required : true
5555 description : " Path to the files to bundle and upload"
5656
57- signtool :
58- required : true
59- description : " Path to signtool"
60- default : " C:\\ Program Files (x86)\\ Microsoft SDKs\\ ClickOnce\\ SignTool\\ signtool.exe"
61-
62- timestamp_server :
63- required : true
64- description : " Timestamp server for signtool"
65- default : " http://timestamp.digicert.com"
66-
67- base64_encoded_pfx :
68- description : ' Base64 encoded pfx file'
69- required : true
70-
71- pfx_key :
72- description : ' pfx password'
73- required : true
74-
7557runs :
7658 using : composite
7759 steps :
@@ -95,35 +77,11 @@ runs:
9577 shell : bash
9678 run : dotnet publish -c ${{ inputs.configuration }} ${{ inputs.project_path }} ${{ inputs.dotnet_args }}
9779
98- # Decode the base 64 encoded pfx and save the Signing_Certificate
99- - name : Decode the pfx
100- shell : bash
101- run : echo "${{ inputs.base64_encoded_pfx }}" | base64 -d > GitHubActionsWorkflow.pfx
102-
103- - name : Sign the executable
104- shell : powershell
105- env :
106- pfx_key : ${{ inputs.pfx_key }}
107- run : |
108- & "${{ inputs.signtool }}" sign /debug /tr ${{ inputs.timestamp_server }} /td sha256 /fd sha256 /f GitHubActionsWorkflow.pfx /p $Env:pfx_key ${{ inputs.binaries }}
109-
11080 # Create the app package by building and packaging the Windows Application Packaging project
11181 - name : Create the installer
11282 shell : bash
11383 run : dotnet build ${{ inputs.package_project }} --no-dependencies -c ${{ inputs.configuration }} -p Version=${{ inputs.package_version }}
11484
115- - name : Sign the installer
116- shell : powershell
117- env :
118- pfx_key : ${{ inputs.pfx_key }}
119- run : |
120- & "${{ inputs.signtool }}" sign /debug /tr ${{ inputs.timestamp_server }} /td sha256 /fd sha256 /f GitHubActionsWorkflow.pfx /p $Env:pfx_key ${{ inputs.package }}
121-
122- # Remove the pfx
123- - name : Remove the pfx
124- shell : bash
125- run : rm GitHubActionsWorkflow.pfx
126-
12785 - name : Upload msi
12886 uses : actions/upload-artifact@v4
12987 with :
0 commit comments