@@ -45,8 +45,8 @@ extends:
45
45
targetPath : ' $(Build.ArtifactStagingDirectory)/Nugets'
46
46
- output : pipelineArtifact
47
47
displayName : ' Publish Artifact: Hidi'
48
- artifactName : Microsoft.OpenApi. Hidi-v$(hidiversion)
49
- targetPath : ' $(Build.ArtifactStagingDirectory)/Microsoft.OpenApi.Hidi-v$(hidiversion) '
48
+ artifactName : Hidi
49
+ targetPath : ' $(Build.ArtifactStagingDirectory)/Microsoft.OpenApi.Hidi'
50
50
steps :
51
51
- task : UseDotNet@2
52
52
displayName : ' Use .NET 6'
@@ -179,23 +179,13 @@ extends:
179
179
MaxConcurrency : ' 50'
180
180
MaxRetryAttempts : ' 5'
181
181
PendingAnalysisWaitTimeoutMinutes : ' 5'
182
-
183
- - task : PowerShell@2
184
- displayName : " Get Hidi's version-number from .csproj"
185
- inputs :
186
- targetType : ' inline'
187
- script : |
188
- $xml = [Xml] (Get-Content .\src\Microsoft.OpenApi.Hidi\Microsoft.OpenApi.Hidi.csproj)
189
- $version = $xml.Project.PropertyGroup.Version
190
- echo $version
191
- echo "##vso[task.setvariable variable=hidiversion]$version"
192
-
182
+
193
183
# publish hidi as an .exe
194
184
- task : DotNetCoreCLI@2
195
185
displayName : publish Hidi as executable
196
186
inputs :
197
187
command : ' publish'
198
- arguments : -c Release --runtime win-x64 /p:PublishSingleFile=true /p:PackAsTool=false --self-contained --output $(Build.ArtifactStagingDirectory)/Microsoft.OpenApi.Hidi-v$(hidiversion)
188
+ arguments : -c Release --runtime win-x64 /p:PublishSingleFile=true /p:PackAsTool=false --self-contained --output $(Build.ArtifactStagingDirectory)/Microsoft.OpenApi.Hidi
199
189
projects : ' src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj'
200
190
publishWebProjects : False
201
191
zipAfterPublish : false
@@ -219,6 +209,9 @@ extends:
219
209
- input : pipelineArtifact
220
210
artifactName : Nugets
221
211
targetPath : ' $(Pipeline.Workspace)'
212
+ - input : pipelineArtifact
213
+ artifactName : Hidi
214
+ targetPath : ' $(Pipeline.Workspace)'
222
215
dependsOn : []
223
216
environment : nuget-org
224
217
strategy :
@@ -227,10 +220,6 @@ extends:
227
220
pool :
228
221
vmImage : ubuntu-latest
229
222
steps :
230
- - task : DownloadPipelineArtifact@2
231
- displayName : Download hidi executable from artifacts
232
- inputs :
233
- source : current
234
223
- pwsh : |
235
224
$artifactName = Get-ChildItem -Path $(Pipeline.Workspace)\Nugets -Filter Microsoft.OpenApi.*.nupkg -recurse | select -First 1
236
225
$artifactVersion= $artifactName.Name -replace "Microsoft.OpenApi.", "" -replace ".nupkg", ""
0 commit comments