-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
60 lines (51 loc) · 1.7 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
46
47
48
49
50
51
52
53
54
55
56
57
58
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
MajorVersion: 1
MinorVersion: 0
InitialReleaseTagNumber: 1
IncrementReleaseTagNumber: $[counter(variables['InitialReleaseTagNumber'], 0)]
steps:
- task: DotNetCoreCLI@2
inputs:
projects: '**/*Console.csproj'
command: 'restore'
includeNuGetOrg: true
- task: DotNetCoreCLI@2
inputs:
projects: '**/*Console.csproj'
command: 'build'
arguments: '--configuration $(buildConfiguration)'
displayName: 'dotnet build $(buildConfiguration)'
- task: CopyFiles@2
displayName: 'Copy Files to: $(Build.BinariesDirectory)'
inputs:
SourceFolder: '$(Build.SourcesDirectory)'
Contents: |
**/*.exe
**/*.dll
**/*.Console.runtimeconfig.json
TargetFolder: '$(Build.BinariesDirectory)'
flattenFolders: true
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.BinariesDirectory)'
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/CustomTriageFlaws-v$(MajorVersion).$(MinorVersion).$(IncrementReleaseTagNumber).zip'
replaceExistingArchive: true
includeRootFolder: false
- task: GitHubRelease@1
inputs:
gitHubConnection: 'sebcoles'
repositoryName: 'sebcoles/VeraCustomTriage'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: 'v$(MajorVersion).$(MinorVersion).$(IncrementReleaseTagNumber)'
title: 'v$(MajorVersion).$(MinorVersion).$(IncrementReleaseTagNumber)'
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'
assets: '$(Build.ArtifactStagingDirectory)/CustomTriageFlaws-v$(MajorVersion).$(MinorVersion).$(IncrementReleaseTagNumber).zip'