File tree 1 file changed +17
-1
lines changed
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 :
@@ -112,6 +112,18 @@ extends:
112
112
files_to_sign : ' **/*.ps1;**/*.psd1;**/*.psm1'
113
113
- pwsh : Invoke-Build Package
114
114
displayName : Create package
115
+ - pwsh : |
116
+ npx vsce generate-manifest --packagePath out/powershell-$(package.version).vsix
117
+ cp out/powershell-$(package.version).manifest out/powershell-$(package.version).signature.p7s
118
+ displayName: Generate VSIX manifest
119
+ - task : onebranch.pipeline.signing@1
120
+ displayName : Sign VSIX manifest
121
+ inputs :
122
+ command : sign
123
+ cp_code : ' CP-401405-VSCodePublisherSign'
124
+ search_root : $(Build.SourcesDirectory)/out
125
+ files_to_sign : |
126
+ *.signature.p7s;
115
127
- job : test
116
128
displayName : Build and run tests
117
129
pool :
@@ -219,6 +231,10 @@ extends:
219
231
'--azure-credential'
220
232
'--packagePath'
221
233
'$(drop)/powershell-$(vsixVersion).vsix'
234
+ '--manifestPath'
235
+ '$(drop)/powershell-$(vsixVersion).manifest'
236
+ '--signaturePath'
237
+ '$(drop)/powershell-$(vsixVersion).signature.p7s'
222
238
if ([bool]::Parse('$(prerelease)')) { '--pre-release' }
223
239
)
224
240
npm run publish -- @publishArgs
You can’t perform that action at this time.
0 commit comments