Skip to content

Commit 4202939

Browse files
committed
Switch to deploy box product release container
1 parent 945745b commit 4202939

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

.pipelines/vscode-powershell-Official.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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:
@@ -130,33 +132,35 @@ extends:
130132
command: sign
131133
cp_code: "CP-401405-VSCodePublisherSign"
132134
search_root: $(Build.SourcesDirectory)/out
133-
files_to_sign: |
134-
*.signature.p7s;
135+
files_to_sign: "*.signature.p7s"
135136
- stage: release
136137
dependsOn: build
137138
condition: eq(variables['Build.Reason'], 'Manual')
138139
variables:
140+
ob_release_environment: PPE
139141
version: $[ stageDependencies.build.main.outputs['package.version'] ]
140142
vsixVersion: $[ stageDependencies.build.main.outputs['package.vsixVersion'] ]
141143
prerelease: $[ stageDependencies.build.main.outputs['package.prerelease'] ]
142-
drop: $(Pipeline.Workspace)/drop_build_main
143144
jobs:
144145
- job: github
145146
displayName: Publish draft to GitHub
146147
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
150153
steps:
151-
- download: current
152-
displayName: Download artifacts
153154
- task: GitHubRelease@1
154155
displayName: Create GitHub release
155156
inputs:
156157
gitHubConnection: GitHub
157158
repositoryName: PowerShell/vscode-powershell
158159
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
160164
tagSource: userSpecifiedTag
161165
tag: v$(version)
162166
isDraft: true
@@ -167,7 +171,7 @@ extends:
167171
- job: validation
168172
displayName: Manual validation
169173
pool:
170-
type: agentless
174+
type: server
171175
timeoutInMinutes: 1440
172176
steps:
173177
- task: ManualValidation@0
@@ -180,12 +184,12 @@ extends:
180184
dependsOn: validation
181185
displayName: Publish to VS Code Marketplace
182186
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
186192
steps:
187-
- download: current
188-
displayName: Download artifacts
189193
- task: UseNode@1
190194
displayName: Use Node 20.x
191195
inputs:
@@ -202,11 +206,11 @@ extends:
202206
$publishArgs = @(
203207
'--azure-credential'
204208
'--packagePath'
205-
'$(drop)/powershell-$(vsixVersion).vsix'
209+
'$(Pipeline.Workspace)/powershell-$(vsixVersion).vsix'
206210
'--manifestPath'
207-
'$(drop)/powershell-$(vsixVersion).manifest'
211+
'$(Pipeline.Workspace)/powershell-$(vsixVersion).manifest'
208212
'--signaturePath'
209-
'$(drop)/powershell-$(vsixVersion).signature.p7s'
213+
'$(Pipeline.Workspace)/powershell-$(vsixVersion).signature.p7s'
210214
if ([bool]::Parse('$(prerelease)')) { '--pre-release' }
211215
)
212216
npm run publish -- @publishArgs

0 commit comments

Comments
 (0)