Skip to content

Commit b36b1fa

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent 6e4ab03 commit b36b1fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,11 @@ steps:
6060
displayName: 'Copy package to ArtifactStagingDirectory'
6161

6262
- task: NuGetCommand@2
63-
condition: and(ne(variables['Build.Reason'], 'PullRequest'), in(variables['Build.SourceBranchName'], 'v3.x/ps7', 'v3.x/ps6', 'v2.x'))
63+
condition: and(ne(variables['Build.Reason'], 'PullRequest'), in(variables['Build.SourceBranch'], 'refs/heads/v3.x/ps7', 'refs/heads/v3.x/ps6', 'refs/heads/v2.x'))
6464
inputs:
6565
command: 'push'
6666
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
6767
nuGetFeedType: 'internal'
6868
publishVstsFeed: 'e6a70c92-4128-439f-8012-382fe78d6396/c0493cce-bc63-4e11-9fc9-e7c45291f151'
69-
allowPackageConflicts: true
69+
allowPackageConflicts: true
70+
displayName: 'Push NuGet package'

0 commit comments

Comments
 (0)