@@ -52,6 +52,8 @@ extends:
5252 WindowsHostVersion :
5353 Version : 2022
5454 Network : KS3
55+ release :
56+ category : NonAzure
5557 stages :
5658 - stage : build
5759 jobs :
@@ -119,25 +121,25 @@ extends:
119121 dependsOn : build
120122 condition : eq(variables['Build.Reason'], 'Manual')
121123 variables :
124+ ob_release_environment : Production
122125 version : $[ stageDependencies.build.main.outputs['package.version'] ]
123- drop : $(Pipeline.Workspace)/drop_build_main
124126 jobs :
125127 - job : github
126128 displayName : Publish draft to GitHub
127129 pool :
128- type : windows
129- variables :
130- ob_outputDirectory : $(Build.SourcesDirectory)/out
130+ type : release
131+ templateContext :
132+ inputs :
133+ - input : pipelineArtifact
134+ artifactName : drop_build_main
131135 steps :
132- - download : current
133- displayName : Download artifacts
134136 - task : GitHubRelease@1
135137 displayName : Create GitHub release
136138 inputs :
137139 gitHubConnection : GitHub
138140 repositoryName : PowerShell/PSScriptAnalyzer
139- assets : |
140- $(drop )/PSScriptAnalyzer.$(version).nupkg
141+ target : main
142+ assets : $(Pipeline.Workspace )/PSScriptAnalyzer.$(version).nupkg
141143 tagSource : userSpecifiedTag
142144 tag : v$(version)
143145 isDraft : true
@@ -147,7 +149,7 @@ extends:
147149 - job : validation
148150 displayName : Manual validation
149151 pool :
150- type : agentless
152+ type : server
151153 timeoutInMinutes : 1440
152154 steps :
153155 - task : ManualValidation@0
@@ -160,16 +162,16 @@ extends:
160162 dependsOn : validation
161163 displayName : Publish to PowerShell Gallery
162164 pool :
163- type : windows
164- variables :
165- ob_outputDirectory : $(Build.SourcesDirectory)/out
165+ type : release
166+ templateContext :
167+ inputs :
168+ - input : pipelineArtifact
169+ artifactName : drop_build_main
166170 steps :
167- - download : current
168- displayName : Download artifacts
169171 - task : NuGetCommand@2
170172 displayName : Publish module to PowerShell Gallery
171173 inputs :
172174 command : push
173- packagesToPush : $(drop )/PSScriptAnalyzer.$(version).nupkg
175+ packagesToPush : $(Pipeline.Workspace )/PSScriptAnalyzer.$(version).nupkg
174176 nuGetFeedType : external
175177 publishFeedCredentials : PowerShellGallery
0 commit comments