@@ -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 :
@@ -130,33 +132,35 @@ extends:
130
132
command : sign
131
133
cp_code : " CP-401405-VSCodePublisherSign"
132
134
search_root : $(Build.SourcesDirectory)/out
133
- files_to_sign : |
134
- *.signature.p7s;
135
+ files_to_sign : " *.signature.p7s"
135
136
- stage : release
136
137
dependsOn : build
137
138
condition : eq(variables['Build.Reason'], 'Manual')
138
139
variables :
140
+ ob_release_environment : PPE
139
141
version : $[ stageDependencies.build.main.outputs['package.version'] ]
140
142
vsixVersion : $[ stageDependencies.build.main.outputs['package.vsixVersion'] ]
141
143
prerelease : $[ stageDependencies.build.main.outputs['package.prerelease'] ]
142
- drop : $(Pipeline.Workspace)/drop_build_main
143
144
jobs :
144
145
- job : github
145
146
displayName : Publish draft to GitHub
146
147
pool :
147
- type : windows
148
- variables :
149
- ob_outputDirectory : $(Build.SourcesDirectory)/out
148
+ type : release
149
+ templateContext :
150
+ inputs :
151
+ - input : pipelineArtifact
152
+ artifactName : drop_build_main
150
153
steps :
151
- - download : current
152
- displayName : Download artifacts
153
154
- task : GitHubRelease@1
154
155
displayName : Create GitHub release
155
156
inputs :
156
157
gitHubConnection : GitHub
157
158
repositoryName : PowerShell/vscode-powershell
158
159
target : main
159
- assets : $(drop)/powershell-$(vsixVersion).vsix
160
+ assets : |
161
+ $(Pipeline.Workspace)/powershell-$(vsixVersion).vsix
162
+ $(Pipeline.Workspace)/powershell-$(vsixVersion).manifest
163
+ $(Pipeline.Workspace)/powershell-$(vsixVersion).signature.p7s
160
164
tagSource : userSpecifiedTag
161
165
tag : v$(version)
162
166
isDraft : true
@@ -167,7 +171,7 @@ extends:
167
171
- job : validation
168
172
displayName : Manual validation
169
173
pool :
170
- type : agentless
174
+ type : server
171
175
timeoutInMinutes : 1440
172
176
steps :
173
177
- task : ManualValidation@0
@@ -180,12 +184,12 @@ extends:
180
184
dependsOn : validation
181
185
displayName : Publish to VS Code Marketplace
182
186
pool :
183
- type : windows
184
- variables :
185
- ob_outputDirectory : $(Build.SourcesDirectory)/out
187
+ type : release
188
+ templateContext :
189
+ inputs :
190
+ - input : pipelineArtifact
191
+ artifactName : drop_build_main
186
192
steps :
187
- - download : current
188
- displayName : Download artifacts
189
193
- task : UseNode@1
190
194
displayName : Use Node 20.x
191
195
inputs :
@@ -202,11 +206,11 @@ extends:
202
206
$publishArgs = @(
203
207
'--azure-credential'
204
208
'--packagePath'
205
- '$(drop )/powershell-$(vsixVersion).vsix'
209
+ '$(Pipeline.Workspace )/powershell-$(vsixVersion).vsix'
206
210
'--manifestPath'
207
- '$(drop )/powershell-$(vsixVersion).manifest'
211
+ '$(Pipeline.Workspace )/powershell-$(vsixVersion).manifest'
208
212
'--signaturePath'
209
- '$(drop )/powershell-$(vsixVersion).signature.p7s'
213
+ '$(Pipeline.Workspace )/powershell-$(vsixVersion).signature.p7s'
210
214
if ([bool]::Parse('$(prerelease)')) { '--pre-release' }
211
215
)
212
216
npm run publish -- @publishArgs
0 commit comments