Skip to content

Commit

Permalink
Collect nuget and vsix artifacts separately
Browse files Browse the repository at this point in the history
This should fix the failure of Azure Pipelines to deploy to nuget.org
  • Loading branch information
AArnott committed Jan 31, 2020
1 parent 86837cf commit 1aa93e6
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions azure-pipelines/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,30 @@ steps:
Contents: |
bin/**/$(BuildConfiguration)/**/*.nupkg
bin/**/$(BuildConfiguration)/**/*.snupkg
TargetFolder: $(Build.ArtifactStagingDirectory)/nuget
flattenFolders: true
displayName: Collecting nuget

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)/nuget
ArtifactName: nuget
ArtifactType: Container
displayName: Publish nuget artifacts
condition: succeededOrFailed()

- task: CopyFiles@1
inputs:
Contents: |
bin/**/$(BuildConfiguration)/**/*.vsix
TargetFolder: $(Build.ArtifactStagingDirectory)/deployables
TargetFolder: $(Build.ArtifactStagingDirectory)/vsix
flattenFolders: true
displayName: Collecting deployables
displayName: Collecting vsix

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)/deployables
ArtifactName: deployables
PathtoPublish: $(Build.ArtifactStagingDirectory)/vsix
ArtifactName: vsix
ArtifactType: Container
displayName: Publish deployables artifacts
displayName: Publish vsix artifacts
condition: succeededOrFailed()

0 comments on commit 1aa93e6

Please sign in to comment.