Skip to content

Commit

Permalink
publish-nuget-packages.yml: Push packages to MyGet
Browse files Browse the repository at this point in the history
  • Loading branch information
NightOwl888 committed Jul 26, 2019
1 parent d4138bd commit 03767d5
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions build/azure-templates/publish-nuget-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,30 @@ steps:
artifactName: ${{ parameters.nugetArtifactName }}
downloadPath: '$(Build.ArtifactStagingDirectory)'

# Push to MyGet
- task: NuGetCommand@2
displayName: 'NuGet push'
inputs:
command: push
packagesToPush: '$(Build.ArtifactStagingDirectory)/${{ parameters.nugetArtifactName }}/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/${{ parameters.nugetArtifactName }}/**/*.symbols.nupkg'
publishVstsFeed: '/${{ parameters.artifactFeedID }}'
allowPackageConflicts: true
nuGetFeedType: external
publishFeedCredentials: 'MyGet-icu4n'

- task: PublishSymbols@2
displayName: 'Publish symbols path'
inputs:
SymbolsFolder: '$(Build.ArtifactStagingDirectory)/${{ parameters.nugetArtifactName }}'
SearchPattern: |
**/bin/**/*.pdb
!${{ parameters.testSymbolFilesConvention }}
IndexSources: true
PublishSymbols: true
SymbolServerType: TeamServices
#- task: NuGetCommand@2
# displayName: 'NuGet push'
# inputs:
# command: push
# packagesToPush: '$(Build.ArtifactStagingDirectory)/${{ parameters.nugetArtifactName }}/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/${{ parameters.nugetArtifactName }}/**/*.symbols.nupkg'
# publishVstsFeed: '/${{ parameters.artifactFeedID }}'
# allowPackageConflicts: true

#- task: PublishSymbols@2
# displayName: 'Publish symbols path'
# inputs:
# SymbolsFolder: '$(Build.ArtifactStagingDirectory)/${{ parameters.nugetArtifactName }}'
# SearchPattern: |
# **/bin/**/*.pdb
# !${{ parameters.testSymbolFilesConvention }}
# IndexSources: true
# PublishSymbols: true
# SymbolServerType: TeamServices

0 comments on commit 03767d5

Please sign in to comment.