-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
45 lines (41 loc) · 1.29 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
45
variables:
- name: BuildParameters.solution
value: '**\*.sln'
name: $(Major).$(Minor).$(Patch).$(Build)
trigger:
- main
pool:
vmImage: windows-latest
steps:
- task: DotNetCoreCLI@2
displayName: "Build Solution"
inputs:
command: 'build'
projects: $(BuildParameters.solution)
configuration: $(BuildConfiguration)
# Workaraound for the pack command not accepting arguments
# https://github.com/microsoft/azure-pipelines-tasks/issues/11640
- task: DotNetCoreCLI@2
displayName: Pack
inputs:
command: custom
custom: pack
arguments: >
RfmOtaClient.sln
--output $(Build.ArtifactStagingDirectory)
-p:PackageVersion=$(PackageVersion)
-p:Configuration=$(BuildConfiguration)
-p:Version=$(PackageVersion)
-p:AssemblyVersion=$(Build.BuildNumber)
- task: GitHubRelease@1
displayName: "Publish Relase To GitHub"
inputs:
gitHubConnection: 'GitHub PAT'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: 'v$(Build.BuildNumber)'
title: 'v$(Build.BuildNumber) - $(BuildConfiguration) - $(Build.SourceBranchName)'
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'