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:
125125
126126 - template : azure-pipelines-templates/class-lib-publish.yml@templates
127127
128- # create or update GitHub release ON tags from release
128+ # create or update GitHub release ON tags
129129 - task : GithubRelease@1
130130 condition : >-
131131 and(
132132 succeeded(),
133133 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+ )
137139 )
138140 displayName : Create/Update GitHub stable release
139141 inputs :
You can’t perform that action at this time.
0 commit comments