-
Notifications
You must be signed in to change notification settings - Fork 4
/
azure-pipelines.yml
44 lines (40 loc) · 1.08 KB
/
azure-pipelines.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
variables:
- name: BuildParameters.solution
value: '**\*.sln'
name: v$(Major).$(Minor).$(Patch)
trigger:
- main
pool:
vmImage: windows-latest
steps:
- task: NuGetToolInstaller@1
inputs:
versionSpec: 4.4
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: $(BuildParameters.solution)
feedsToUse: 'select'
- task: VSBuild@1
displayName: 'Build Solution'
inputs:
solution: $(BuildParameters.solution)
configuration: $(BuildConfiguration)
clean: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
- task: GitHubRelease@1
displayName: "Publish Relase To GitHub"
inputs:
gitHubConnection: 'GitHub PAT'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: '$(Build.BuildNumber)'
title: '$(Build.BuildNumber) - $(BuildConfiguration) - $(Build.SourceBranchName)'
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'