-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcreate-github-release.yml
More file actions
38 lines (36 loc) · 1.63 KB
/
create-github-release.yml
File metadata and controls
38 lines (36 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright (c) .NET Foundation and Contributors
# See LICENSE file in the project root for full license information.
steps:
# create GitHub release build from main & develop branches
- task: GithubRelease@1
condition: >-
and(
succeeded(),
eq(variables['System.PullRequest.PullRequestId'], ''),
not(startsWith(variables['Build.SourceBranch'], 'refs/pull/')),
not(contains(variables['Build.SourceBranch'], 'preview')),
eq(variables['StartReleaseCandidate'], false),
or(
eq(variables['Build.SourceBranchName'], 'main'),
eq(variables['Build.SourceBranchName'], 'develop')
)
)
displayName: Create/Update GitHub release
inputs:
action: edit
gitHubConnection: "github.com_nano-$(System.TeamProject)"
tagSource: userSpecifiedTag
tag: v$(MY_NUGET_VERSION)
title: "$(nugetPackageName) Library v$(MY_NUGET_VERSION)"
assets: "$(Build.ArtifactStagingDirectory)/*$(nugetPackageName).$(MY_NUGET_VERSION).nupkg"
isPreRelease: false
addChangeLog: true
changeLogType: issueBased
changeLogLabels: |
[
{ "label" : "Type: enhancement", "displayName" : "Enhancements and new features", "state" : "closed" },
{ "label" : "Type: bug", "displayName" : "Bugs fixed", "state" : "closed" },
{ "label" : "Breaking-Change", "displayName" : "Breaking Changes", "state" : "closed" },
{ "label" : "Type: dependencies", "displayName" : "Dependencies updated", "state" : "closed" },
{ "label" : "Type: documentation", "displayName" : "Documentation", "state" : "closed" }
]