-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.yml
42 lines (34 loc) · 854 Bytes
/
build.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
trigger:
tags:
include:
- v*
pool: Default
resources:
repositories:
- repository: templates
type: git
name: DevShared/Templates
variables:
- group: Nuget
- name: buildConfiguration
value: 'Release'
steps:
- template: steps/delete-nupkgs.yml@templates
- task: DotNetCoreCLI@2
displayName: 'Build'
inputs:
command: build
projects: '**/*.csproj'
arguments: '--configuration $(BuildConfiguration)'
- template: steps/dotnet-test-and-publish-results.yml@templates
- task: CopyFiles@2
displayName: 'Copy package files to staging directory'
inputs:
Contents: |
**/*.nupkg
**/*.snupkg
TargetFolder: '$(build.artifactStagingDirectory)'
FlattenFolders: true
- template: steps/nuget-push.yml@templates
parameters:
feed: $(nuget.feed)