From e0b30619c15a02d6d009a9a095df891dcc3e961e Mon Sep 17 00:00:00 2001 From: Maggie Kimani Date: Mon, 15 Aug 2022 20:03:04 +0300 Subject: [PATCH 1/2] Publish release notes and .exe before pushing to Nuget --- .azure-pipelines/ci-build.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.azure-pipelines/ci-build.yml b/.azure-pipelines/ci-build.yml index 5e8ddbd3b..44606bf01 100644 --- a/.azure-pipelines/ci-build.yml +++ b/.azure-pipelines/ci-build.yml @@ -266,14 +266,6 @@ stages: echo "$artifactName" echo "$artifactVersion" displayName: 'Fetch Artifact Name' - - - task: NuGetCommand@2 - displayName: 'NuGet push' - inputs: - command: push - packagesToPush: '$(Pipeline.Workspace)/Nugets/Microsoft.OpenApi.Hidi.*.nupkg' - nuGetFeedType: external - publishFeedCredentials: 'OpenAPI Nuget Connection' - task: GitHubRelease@1 displayName: 'GitHub release (edit)' inputs: @@ -285,6 +277,13 @@ stages: releaseNotesSource: inline assets: '$(Pipeline.Workspace)\**\*.exe' changeLogType: issueBased + - task: NuGetCommand@2 + displayName: 'NuGet push' + inputs: + command: push + packagesToPush: '$(Pipeline.Workspace)/Nugets/Microsoft.OpenApi.Hidi.*.nupkg' + nuGetFeedType: external + publishFeedCredentials: 'OpenAPI Nuget Connection' - deployment: deploy_lib dependsOn: [] From 5938d425c55ad4580e16fdba23ac12fbdca344e7 Mon Sep 17 00:00:00 2001 From: Maggie Kimani Date: Mon, 15 Aug 2022 20:14:10 +0300 Subject: [PATCH 2/2] Add a condition that triggers this task to run whether or not the preceding step has failed --- .azure-pipelines/ci-build.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.azure-pipelines/ci-build.yml b/.azure-pipelines/ci-build.yml index 44606bf01..3e1b04fca 100644 --- a/.azure-pipelines/ci-build.yml +++ b/.azure-pipelines/ci-build.yml @@ -266,8 +266,16 @@ stages: echo "$artifactName" echo "$artifactVersion" displayName: 'Fetch Artifact Name' + - task: NuGetCommand@2 + displayName: 'NuGet push' + inputs: + command: push + packagesToPush: '$(Pipeline.Workspace)/Nugets/Microsoft.OpenApi.Hidi.*.nupkg' + nuGetFeedType: external + publishFeedCredentials: 'OpenAPI Nuget Connection' - task: GitHubRelease@1 displayName: 'GitHub release (edit)' + condition: succeededOrFailed() inputs: gitHubConnection: 'Github-MaggieKimani1' action: edit @@ -277,13 +285,6 @@ stages: releaseNotesSource: inline assets: '$(Pipeline.Workspace)\**\*.exe' changeLogType: issueBased - - task: NuGetCommand@2 - displayName: 'NuGet push' - inputs: - command: push - packagesToPush: '$(Pipeline.Workspace)/Nugets/Microsoft.OpenApi.Hidi.*.nupkg' - nuGetFeedType: external - publishFeedCredentials: 'OpenAPI Nuget Connection' - deployment: deploy_lib dependsOn: []