We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e6dacf commit 3af676eCopy full SHA for 3af676e
.azure-pipelines/ci-build.yml
@@ -132,6 +132,7 @@ extends:
132
allowPackageConflicts: true
133
- stage: 'Deploy_to_PsGallery'
134
dependsOn: stage
135
+ condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main')) # Only deploy to PSGallery on main branch
136
jobs:
137
- deployment: 'DeployToPowerShellGallery'
138
displayName: 'Deploy to PowerShell Gallery'
0 commit comments