forked from Efferent-Health/HL7-dotnetcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
47 lines (46 loc) · 1.18 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
trigger:
- master
stages:
- stage: Build
jobs:
- job: Managed
pool:
vmImage: 'ubuntu-latest'
steps:
- task: DotNetCoreCLI@2
displayName: Compile source
inputs:
command: 'build'
projects: 'src/*.csproj'
arguments: '--configuration Release'
feedsToUse: 'select'
versioningScheme: 'off'
- task: DotNetCoreCLI@2
displayName: Unit tests
inputs:
command: 'test'
projects: 'test/*.csproj'
testRunTitle: 'HL7-dotnetcore unit test'
feedsToUse: 'select'
versioningScheme: 'off'
- stage: Deploy
jobs:
- job: nuget
pool:
vmImage: 'ubuntu-latest'
steps:
- task: DotNetCoreCLI@2
displayName: Prepare nuget package
inputs:
command: 'pack'
arguments: '--configuration Release'
feedsToUse: 'select'
packagesToPack: '**/HL7-dotnetcore.csproj'
versioningScheme: 'off'
- task: NuGetCommand@2
displayName: 'Publish nuget package'
inputs:
command: push
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: Nuget.org