Skip to content

Commit 5430d21

Browse files
authored
Trigger builds for release branches and only publish package for main/release branches (#135)
* Only publish nuget package for main/release branches * Also trigger builds for pushes to release branches
1 parent 48f3137 commit 5430d21

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

azure-pipelines.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
trigger:
88
- main
9+
- release/*
910

1011
pool:
1112
vmImage: 'windows-2019'
@@ -111,7 +112,15 @@ jobs:
111112
useHermes: true
112113

113114
- job: Publish
114-
dependsOn: E2ETest
115+
dependsOn:
116+
- E2ETest
117+
- E2ETestHermes
118+
condition: |
119+
or
120+
(
121+
eq(variables['Build.SourceBranch'], 'refs/heads/main'),
122+
startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')
123+
)
115124
steps:
116125
- task: DownloadBuildArtifacts@0
117126
inputs:

0 commit comments

Comments
 (0)