File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -125,15 +125,17 @@ jobs:
125
125
126
126
- template : azure-pipelines-templates/class-lib-publish.yml@templates
127
127
128
- # create or update GitHub release ON tags from release
128
+ # create or update GitHub release ON tags
129
129
- task : GithubRelease@1
130
130
condition : >-
131
131
and(
132
132
succeeded(),
133
133
eq(variables['System.PullRequest.PullRequestId'], ''),
134
- startsWith(variables['Build.SourceBranch'], 'refs/heads/main'),
135
- not(contains(variables['Build.SourceBranch'], 'preview')),
136
- eq(variables['StartReleaseCandidate'], false)
134
+ eq(variables['StartReleaseCandidate'], false),
135
+ or(
136
+ eq(variables['Build.SourceBranchName'], 'main'),
137
+ eq(variables['Build.SourceBranchName'], 'develop')
138
+ )
137
139
)
138
140
displayName : Create/Update GitHub stable release
139
141
inputs :
You can’t perform that action at this time.
0 commit comments