@@ -51,7 +51,9 @@ extends:
5151 EnableCDPxPAT : false
5252 WindowsHostVersion :
5353 Version : 2022
54- Network : Netlock
54+ Network : KS3
55+ release :
56+ category : NonAzure
5557 stages :
5658 - stage : build
5759 jobs :
@@ -60,7 +62,7 @@ extends:
6062 pool :
6163 type : windows
6264 variables :
63- ob_outputDirectory : $(Build.SourcesDirectory)/module
65+ ob_outputDirectory : $(Build.SourcesDirectory)/out
6466 steps :
6567 - pwsh : |
6668 [xml]$xml = Get-Content PowerShellEditorServices.Common.props
@@ -88,9 +90,10 @@ extends:
8890 version : 6.x
8991 - pwsh : |
9092 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
9497 displayName : Build and test
9598 - task : PublishTestResults@2
9699 displayName : Publish test results
@@ -129,38 +132,38 @@ extends:
129132 **/Nerdbank.Streams.dll;
130133 **/Newtonsoft.Json.dll;
131134 **/OmniSharp.Extensions*.dll;
132- **/Serilog*.dll;
133135 **/System.Reactive.dll;
136+ - task : ArchiveFiles@2
137+ displayName : Zip signed artifacts
138+ inputs :
139+ rootFolderOrFile : $(Build.SourcesDirectory)/module
140+ includeRootFolder : false
141+ archiveType : zip
142+ archiveFile : out/PowerShellEditorServices.zip
134143 - stage : release
135144 dependsOn : build
136145 condition : eq(variables['Build.Reason'], 'Manual')
137146 variables :
147+ ob_release_environment : Production
138148 version : $[ stageDependencies.build.main.outputs['package.version'] ]
139149 prerelease : $[ stageDependencies.build.main.outputs['package.prerelease'] ]
140- drop : $(Pipeline.Workspace)/drop_build_main
141150 jobs :
142151 - job : github
143152 displayName : Publish draft to GitHub
144153 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
154+ type : release
155+ templateContext :
153156 inputs :
154- rootFolderOrFile : $(drop)
155- includeRootFolder : false
156- archiveType : zip
157- archiveFile : out/PowerShellEditorServices.zip
157+ - input : pipelineArtifact
158+ artifactName : drop_build_main
159+ steps :
158160 - task : GitHubRelease@1
159161 displayName : Create GitHub release
160162 inputs :
161163 gitHubConnection : GitHub
162164 repositoryName : PowerShell/PowerShellEditorServices
163- assets : out/PowerShellEditorServices.zip
165+ target : main
166+ assets : $(Pipeline.Workspace)/PowerShellEditorServices.zip
164167 tagSource : userSpecifiedTag
165168 tag : v$(version)
166169 isDraft : true
0 commit comments