Skip to content

Commit 0060e60

Browse files
authored
Merge pull request #2998 from microsoftgraph/fix/pipelinestage
Adds condition to deploy to ps gallery on main branch triggers only.
2 parents 3e6dacf + c8fc6cf commit 0060e60

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)