Skip to content

Commit

Permalink
Publish condition 'startsWith' instead of 'eq'
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjarobot committed Mar 26, 2021
1 parent ca4f6a3 commit c2007df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ stages:
- stage: "Release"
displayName: "Release to NuGet"
dependsOn: ["Prepare"]
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/tags/')) #optional, only publish nuget pkg for new tags
condition: and(succeeded(), startsWith(variables['build.sourceBranch'], 'refs/tags/')) #optional, only publish nuget pkg for new tags
jobs:
- deployment: "NugetPublish"
displayName: "Publish to NuGet"
Expand Down

0 comments on commit c2007df

Please sign in to comment.