File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ extends:
56
56
EnableCDPxPAT : false
57
57
WindowsHostVersion :
58
58
Version : 2022
59
- Network : Netlock
59
+ Network : KS3
60
60
stages :
61
61
- stage : build
62
62
jobs :
@@ -108,6 +108,18 @@ extends:
108
108
files_to_sign : ' **/*.ps1;**/*.psd1;**/*.psm1'
109
109
- pwsh : Invoke-Build Package
110
110
displayName : Create package
111
+ - pwsh : |
112
+ npx vsce generate-manifest --packagePath out/powershell-$(vsixVersion).vsix
113
+ cp out/powershell-$(vsixVersion).manifest out/powershell-$(vsixVersion).signature.p7s
114
+ displayName: Generate VSIX manifest
115
+ - task : onebranch.pipeline.signing@1
116
+ displayName : Sign VSIX manifest
117
+ inputs :
118
+ command : sign
119
+ cp_code : ' CP-401405'
120
+ search_root : $(Build.SourcesDirectory)/out
121
+ files_to_sign : |
122
+ *.signature.p7s;
111
123
- job : test
112
124
displayName : Build and run tests
113
125
pool :
@@ -211,6 +223,10 @@ extends:
211
223
'--azure-credential'
212
224
'--packagePath'
213
225
'$(drop)/powershell-$(vsixVersion).vsix'
226
+ '--manifestPath'
227
+ '$(drop)/powershell-$(vsixVersion).manifest'
228
+ '--signaturePath'
229
+ '$(drop)/powershell-$(vsixVersion).signature.p7s'
214
230
if ([bool]::Parse('$(prerelease)')) { '--pre-release' }
215
231
)
216
232
npm run publish -- @publishArgs
You can’t perform that action at this time.
0 commit comments