@@ -51,7 +51,9 @@ extends:
51
51
EnableCDPxPAT : false
52
52
WindowsHostVersion :
53
53
Version : 2022
54
- Network : Netlock
54
+ Network : KS3
55
+ release :
56
+ category : NonAzure
55
57
stages :
56
58
- stage : build
57
59
jobs :
@@ -60,7 +62,7 @@ extends:
60
62
pool :
61
63
type : windows
62
64
variables :
63
- ob_outputDirectory : $(Build.SourcesDirectory)/module
65
+ ob_outputDirectory : $(Build.SourcesDirectory)/out
64
66
steps :
65
67
- pwsh : |
66
68
[xml]$xml = Get-Content PowerShellEditorServices.Common.props
@@ -88,9 +90,10 @@ extends:
88
90
version : 6.x
89
91
- pwsh : |
90
92
Register-PSRepository -Name CFS -SourceLocation "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2" -InstallationPolicy Trusted
91
- Install-Module -Repository CFS -Name InvokeBuild -RequiredVersion 5.11.3
92
- Install-Module -Repository CFS -Name platyPS -RequiredVersion 0.14.2
93
- Invoke-Build TestFull -Configuration $(BuildConfiguration) -PSRepository CFS
93
+ Install-Module -Repository CFS -Name Microsoft.PowerShell.PSResourceGet
94
+ ./tools/installPSResources.ps1 -PSRepository CFS
95
+ displayName: Install PSResources
96
+ - pwsh : Invoke-Build TestFull -Configuration $(BuildConfiguration) -PSRepository CFS
94
97
displayName : Build and test
95
98
- task : PublishTestResults@2
96
99
displayName : Publish test results
@@ -131,36 +134,37 @@ extends:
131
134
**/OmniSharp.Extensions*.dll;
132
135
**/Serilog*.dll;
133
136
**/System.Reactive.dll;
137
+ - task : ArchiveFiles@2
138
+ displayName : Zip signed artifacts
139
+ inputs :
140
+ rootFolderOrFile : $(Build.SourcesDirectory)/module
141
+ includeRootFolder : false
142
+ archiveType : zip
143
+ archiveFile : out/PowerShellEditorServices.zip
134
144
- stage : release
135
145
dependsOn : build
136
146
condition : eq(variables['Build.Reason'], 'Manual')
137
147
variables :
148
+ ob_release_environment : Production
138
149
version : $[ stageDependencies.build.main.outputs['package.version'] ]
139
150
prerelease : $[ stageDependencies.build.main.outputs['package.prerelease'] ]
140
- drop : $(Pipeline.Workspace)/drop_build_main
141
151
jobs :
142
152
- job : github
143
153
displayName : Publish draft to GitHub
144
154
pool :
145
- type : windows
146
- variables :
147
- ob_outputDirectory : $(Build.SourcesDirectory)/out
148
- steps :
149
- - download : current
150
- displayName : Download artifacts
151
- - task : ArchiveFiles@2
152
- displayName : Zip signed artifacts
155
+ type : release
156
+ templateContext :
153
157
inputs :
154
- rootFolderOrFile : $(drop)
155
- includeRootFolder : false
156
- archiveType : zip
157
- archiveFile : out/PowerShellEditorServices.zip
158
+ - input : pipelineArtifact
159
+ artifactName : drop_build_main
160
+ steps :
158
161
- task : GitHubRelease@1
159
162
displayName : Create GitHub release
160
163
inputs :
161
164
gitHubConnection : GitHub
162
165
repositoryName : PowerShell/PowerShellEditorServices
163
- assets : out/PowerShellEditorServices.zip
166
+ target : main
167
+ assets : $(Pipeline.Workspace)/PowerShellEditorServices.zip
164
168
tagSource : userSpecifiedTag
165
169
tag : v$(version)
166
170
isDraft : true
0 commit comments