-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
50 lines (47 loc) · 1.45 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
name: $(Date:yyyy-MM-dd)$(Rev:.rr)
pool:
vmImage: windows-2019
trigger:
branches:
include:
- master
stages:
- stage: build
displayName: build & test & package
jobs:
- job: build_test_package
displayName: build & test & package
steps:
- task: DotNetCoreCLI@2
displayName: dotnet build
inputs:
command: build
arguments: --configuration Release --verbosity normal
- task: DotNetCoreCLI@2
displayName: dotnet test
inputs:
command: test
arguments: --no-build --configuration Release --verbosity normal
- task: DotNetCoreCLI@2
displayName: dotnet pack
inputs:
command: custom
custom: pack
arguments: --no-build --configuration Release --verbosity normal --output $(Build.ArtifactStagingDirectory)
- publish: $(Build.ArtifactStagingDirectory)
artifact: package
- stage: publish
jobs:
- deployment:
environment: nuget
strategy:
runOnce:
deploy:
steps:
- task: NuGetCommand@2
displayName: nuget push
inputs:
command: push
nuGetFeedType: external
publishFeedCredentials: NuGet
packagesToPush: $(Pipeline.Workspace)/package/*.nupkg