Skip to content

Commit 3af676e

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Adds condition to deploy to ps gallery on main branch triggers only.
1 parent 3e6dacf commit 3af676e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ extends:
132132
allowPackageConflicts: true
133133
- stage: 'Deploy_to_PsGallery'
134134
dependsOn: stage
135+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main')) # Only deploy to PSGallery on main branch
135136
jobs:
136137
- deployment: 'DeployToPowerShellGallery'
137138
displayName: 'Deploy to PowerShell Gallery'

0 commit comments

Comments
 (0)