Skip to content

Commit 5938d42

Browse files
committed
Add a condition that triggers this task to run whether or not the preceding step has failed
1 parent e0b3061 commit 5938d42

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,16 @@ stages:
266266
echo "$artifactName"
267267
echo "$artifactVersion"
268268
displayName: 'Fetch Artifact Name'
269+
- task: NuGetCommand@2
270+
displayName: 'NuGet push'
271+
inputs:
272+
command: push
273+
packagesToPush: '$(Pipeline.Workspace)/Nugets/Microsoft.OpenApi.Hidi.*.nupkg'
274+
nuGetFeedType: external
275+
publishFeedCredentials: 'OpenAPI Nuget Connection'
269276
- task: GitHubRelease@1
270277
displayName: 'GitHub release (edit)'
278+
condition: succeededOrFailed()
271279
inputs:
272280
gitHubConnection: 'Github-MaggieKimani1'
273281
action: edit
@@ -277,13 +285,6 @@ stages:
277285
releaseNotesSource: inline
278286
assets: '$(Pipeline.Workspace)\**\*.exe'
279287
changeLogType: issueBased
280-
- task: NuGetCommand@2
281-
displayName: 'NuGet push'
282-
inputs:
283-
command: push
284-
packagesToPush: '$(Pipeline.Workspace)/Nugets/Microsoft.OpenApi.Hidi.*.nupkg'
285-
nuGetFeedType: external
286-
publishFeedCredentials: 'OpenAPI Nuget Connection'
287288

288289
- deployment: deploy_lib
289290
dependsOn: []

0 commit comments

Comments
 (0)