@@ -58,6 +58,8 @@ extends:
5858 WindowsHostVersion :
5959 Version : 2022
6060 Network : KS3
61+ release :
62+ category : NonAzure
6163 stages :
6264 - stage : build
6365 jobs :
@@ -166,26 +168,30 @@ extends:
166168 dependsOn : build
167169 condition : eq(variables['Build.Reason'], 'Manual')
168170 variables :
171+ ob_release_environment : PPE
169172 version : $[ stageDependencies.build.main.outputs['package.version'] ]
170173 vsixVersion : $[ stageDependencies.build.main.outputs['package.vsixVersion'] ]
171174 prerelease : $[ stageDependencies.build.main.outputs['package.prerelease'] ]
172- drop : $(Pipeline.Workspace)/drop_build_main
173175 jobs :
174176 - job : github
175177 displayName : Publish draft to GitHub
176178 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
180184 steps :
181- - download : current
182- displayName : Download artifacts
183185 - task : GitHubRelease@1
184186 displayName : Create GitHub release
185187 inputs :
186188 gitHubConnection : GitHub
187189 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
189195 tagSource : userSpecifiedTag
190196 tag : v$(version)
191197 isDraft : true
@@ -196,7 +202,7 @@ extends:
196202 - job : validation
197203 displayName : Manual validation
198204 pool :
199- type : agentless
205+ type : server
200206 timeoutInMinutes : 1440
201207 steps :
202208 - task : ManualValidation@0
@@ -209,12 +215,12 @@ extends:
209215 dependsOn : validation
210216 displayName : Publish to VS Code Marketplace
211217 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
215223 steps :
216- - download : current
217- displayName : Download artifacts
218224 - task : UseNode@1
219225 displayName : Use Node 20.x
220226 inputs :
@@ -231,11 +237,11 @@ extends:
231237 $publishArgs = @(
232238 '--azure-credential'
233239 '--packagePath'
234- '$(drop )/powershell-$(vsixVersion).vsix'
240+ '$(Pipeline.Workspace )/powershell-$(vsixVersion).vsix'
235241 '--manifestPath'
236- '$(drop )/powershell-$(vsixVersion).manifest'
242+ '$(Pipeline.Workspace )/powershell-$(vsixVersion).manifest'
237243 '--signaturePath'
238- '$(drop )/powershell-$(vsixVersion).signature.p7s'
244+ '$(Pipeline.Workspace )/powershell-$(vsixVersion).signature.p7s'
239245 if ([bool]::Parse('$(prerelease)')) { '--pre-release' }
240246 )
241247 npm run publish -- @publishArgs
0 commit comments