Skip to content

Commit 2bb1d2d

Browse files
committed
Work CI-CD
- Publish to nuget now happens on build from develop branch too.
1 parent 85086ea commit 2bb1d2d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

azure-pipelines.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)