@@ -108,20 +108,6 @@ jobs:
108
108
$ErrorActionPreference = "Stop"
109
109
makensis setup.nsi
110
110
111
- - name : Sign application
112
- shell : pwsh
113
- run : |
114
- $env:Path = "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\;" + $env:Path
115
- $filename = get-ChildItem dist -recurse | where {$_.name -like "*Setup*"}
116
- # Proceed to sign app
117
- signtool sign /f src\ansys\tools\installer\assets\python-installer.pfx `
118
- /fd SHA256 `
119
- /tr http://timestamp.digicert.com `
120
- /td SHA256 `
121
- /p '${{ secrets.PYTHON_INSTALLER_CERT_PWD }}' `
122
- /d Ansys-Python-Manager `
123
- $filename
124
-
125
111
- name : List output
126
112
run : ls -R dist
127
113
@@ -130,10 +116,48 @@ jobs:
130
116
name : Python-Installer
131
117
path : dist/*Setup*.exe
132
118
119
+ sign-application :
120
+ name : Sign application
121
+ needs : [build-application]
122
+ runs-on :
123
+ group : ansys-internal
124
+ labels : [self-hosted, Windows, signtool]
125
+ steps :
126
+ - name : Checkout the SignTool
127
+ uses : actions/checkout@v3
128
+ with :
129
+ repository : pyansys/signtool-ansys-apps
130
+ token : ${{ secrets.SIGNTOOL_ACCESS_TOKEN }}
131
+
132
+ - uses : actions/download-artifact@v3
133
+ with :
134
+ name : Python-Installer
135
+ path : signtool/installer
136
+
137
+ - name : List current structure
138
+ run : ls -R
139
+
140
+ - name : Sign application
141
+ working-directory : signtool
142
+ run : |
143
+ $filename = (get-ChildItem installer -recurse | where {$_.name -like "*Setup*"}).Name
144
+ $jobname = $filename -replace ".{4}$"
145
+ dotnet signclient.dll sign `
146
+ -r ansyssigning@ansys.com `
147
+ -s '${{ secrets.SIGNTOOL_PWD }}' `
148
+ -c AppSettings.json `
149
+ -n $jobname `
150
+ -i installer/$filename
151
+
152
+ - uses : actions/upload-artifact@v3
153
+ with :
154
+ name : Python-Installer
155
+ path : signtool/installer/*Setup*.exe
156
+
133
157
release :
134
158
name : Release application
135
159
if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
136
- needs : [build -application]
160
+ needs : [sign -application]
137
161
runs-on : ubuntu-latest
138
162
steps :
139
163
- uses : actions/download-artifact@v3
0 commit comments