|
8 | 8 | - main |
9 | 9 | - dev |
10 | 10 | - support/v1 |
| 11 | + tags: |
| 12 | + include: |
| 13 | + - 'v*' |
11 | 14 | pr: |
12 | 15 | branches: |
13 | 16 | include: |
@@ -194,7 +197,7 @@ extends: |
194 | 197 | content: '*.nupkg' |
195 | 198 |
|
196 | 199 | - stage: deploy |
197 | | - condition: and(or(contains(variables['build.sourceBranch'], 'refs/heads/main'),contains(variables['build.sourceBranch'], 'refs/heads/support/v1')), succeeded()) |
| 200 | + condition: and(contains(variables['build.sourceBranch'], 'refs/tags/v'), succeeded()) |
198 | 201 | dependsOn: build |
199 | 202 | jobs: |
200 | 203 | - deployment: deploy_hidi |
@@ -305,18 +308,10 @@ extends: |
305 | 308 | condition: succeededOrFailed() |
306 | 309 | inputs: |
307 | 310 | gitHubConnection: 'Github-MaggieKimani1' |
308 | | - action: create |
| 311 | + action: edit |
309 | 312 | tagSource: userSpecifiedTag |
310 | | - tag: '$(artifactVersion)' |
311 | | - title: '$(artifactVersion)' |
| 313 | + tag: 'v$(artifactVersion)' |
312 | 314 | releaseNotesSource: inline |
313 | 315 | assets: '$(Pipeline.Workspace)\**\*.exe' |
314 | | - changeLogType: issueBased |
315 | | - changeLogLabels: '[ |
316 | | - { "label" : "feature-work", "feature", "displayName" : "New Features", "state" : "closed" }, |
317 | | - { "label" : "enhancement", "V2-Enhancement", "displayName" : "Enhancements", "state" : "closed" }, |
318 | | - { "label" : "bug", "bug-fix", "displayName" : "Bugs", "state" : "closed" }, |
319 | | - { "label" : "documentation", "doc", "displayName" : "Documentation", "state" : "closed"}, |
320 | | - { "label" : "dependencies", "displayName" : "Package Updates", "state" : "closed" } |
321 | | - ]' |
| 316 | + addChangeLog: false |
322 | 317 |
|
0 commit comments