-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelease-pipeline.yml
44 lines (35 loc) · 1007 Bytes
/
release-pipeline.yml
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
39
40
41
42
43
44
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
name: $(Rev:r)
trigger:
tags:
include:
- "*"
pr: none
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: Release
steps:
- pwsh: |
[string]$latestTag=iex 'git describe --tags --abbrev=0'
Write-Host "##vso[task.setvariable variable=releaseTag]$latestTag"
Write-Host "##vso[build.updatebuildnumber]v$latestTag"
displayName: "Set buld task name"
- template: ci/templates/build-and-package.yml
- task: NuGetCommand@2
displayName: 'Push package to Nuget.org'
inputs:
command: push
nuGetFeedType: external
publishFeedCredentials: HoneycombSinkNugetFeed
- task: GitHubRelease@1
inputs:
gitHubConnection: GithubServiceConnection
repositoryName: '$(Build.Repository.Name)'
action: 'edit'
target: '$(Build.SourceVersion)'
releaseNotesSource: 'inline'
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'
tag: $(releaseTag)