@@ -58,6 +58,8 @@ extends:
58
58
WindowsHostVersion :
59
59
Version : 2022
60
60
Network : KS3
61
+ release :
62
+ category : NonAzure
61
63
stages :
62
64
- stage : build
63
65
jobs :
@@ -166,26 +168,30 @@ extends:
166
168
dependsOn : build
167
169
condition : eq(variables['Build.Reason'], 'Manual')
168
170
variables :
171
+ ob_release_environment : PPE
169
172
version : $[ stageDependencies.build.main.outputs['package.version'] ]
170
173
vsixVersion : $[ stageDependencies.build.main.outputs['package.vsixVersion'] ]
171
174
prerelease : $[ stageDependencies.build.main.outputs['package.prerelease'] ]
172
- drop : $(Pipeline.Workspace)/drop_build_main
173
175
jobs :
174
176
- job : github
175
177
displayName : Publish draft to GitHub
176
178
pool :
177
- type : windows
178
- variables :
179
- ob_outputDirectory : $(Build.SourcesDirectory)/out
179
+ type : release
180
+ templateContext :
181
+ inputs :
182
+ - input : pipelineArtifact
183
+ artifactName : drop_build_main
180
184
steps :
181
- - download : current
182
- displayName : Download artifacts
183
185
- task : GitHubRelease@1
184
186
displayName : Create GitHub release
185
187
inputs :
186
188
gitHubConnection : GitHub
187
189
repositoryName : PowerShell/vscode-powershell
188
- assets : $(drop)/powershell-$(vsixVersion).vsix
190
+ target : main
191
+ assets : |
192
+ $(Pipeline.Workspace)/powershell-$(vsixVersion).vsix
193
+ $(Pipeline.Workspace)/powershell-$(vsixVersion).manifest
194
+ $(Pipeline.Workspace)/powershell-$(vsixVersion).signature.p7s
189
195
tagSource : userSpecifiedTag
190
196
tag : v$(version)
191
197
isDraft : true
@@ -196,7 +202,7 @@ extends:
196
202
- job : validation
197
203
displayName : Manual validation
198
204
pool :
199
- type : agentless
205
+ type : server
200
206
timeoutInMinutes : 1440
201
207
steps :
202
208
- task : ManualValidation@0
@@ -209,12 +215,12 @@ extends:
209
215
dependsOn : validation
210
216
displayName : Publish to VS Code Marketplace
211
217
pool :
212
- type : windows
213
- variables :
214
- ob_outputDirectory : $(Build.SourcesDirectory)/out
218
+ type : release
219
+ templateContext :
220
+ inputs :
221
+ - input : pipelineArtifact
222
+ artifactName : drop_build_main
215
223
steps :
216
- - download : current
217
- displayName : Download artifacts
218
224
- task : UseNode@1
219
225
displayName : Use Node 20.x
220
226
inputs :
@@ -231,11 +237,11 @@ extends:
231
237
$publishArgs = @(
232
238
'--azure-credential'
233
239
'--packagePath'
234
- '$(drop )/powershell-$(vsixVersion).vsix'
240
+ '$(Pipeline.Workspace )/powershell-$(vsixVersion).vsix'
235
241
'--manifestPath'
236
- '$(drop )/powershell-$(vsixVersion).manifest'
242
+ '$(Pipeline.Workspace )/powershell-$(vsixVersion).manifest'
237
243
'--signaturePath'
238
- '$(drop )/powershell-$(vsixVersion).signature.p7s'
244
+ '$(Pipeline.Workspace )/powershell-$(vsixVersion).signature.p7s'
239
245
if ([bool]::Parse('$(prerelease)')) { '--pre-release' }
240
246
)
241
247
npm run publish -- @publishArgs
0 commit comments