-
Notifications
You must be signed in to change notification settings - Fork 16
/
azure-pipelines-release.yml
52 lines (47 loc) · 1.34 KB
/
azure-pipelines-release.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
trigger:
branches:
exclude:
- '*'
pr:
branches:
exclude:
- '*'
variables:
solution: '**/MeadowCLI.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
pool:
vmImage: windows-2019
stages:
- stage: Build_Release
jobs:
- job: Create_Release
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
feedsToUse: 'select'
restoreSolution: '$(solution)'
- task: VSBuild@1
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: 'MeadowCLI\bin\Release\net472'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)\Meadow.CLI.$(tagName).zip'
- task: GitHubRelease@1
inputs:
gitHubConnection: 'github.com_lamebrain'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: '$(tagName)'
title: '$(title)'
assets: '$(Build.ArtifactStagingDirectory)\Meadow.CLI.$(tagName).zip'
isPreRelease: true
addChangeLog: false