-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
43 lines (37 loc) · 940 Bytes
/
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
trigger:
branches:
include:
- '*'
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core sdk'
inputs:
packageType: sdk
version: 3.1.100
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: DotNetCoreCLI@2
displayName: 'Build the project'
inputs:
command: 'build'
arguments: '--configuration Release'
- task: DotNetCoreCLI@2
inputs:
command: 'test'
nobuild: true
- task: DotNetCoreCLI@2
inputs:
command: 'pack'
configuration: 'Release'
packagesToPack: 'SimplePayment/SimplePayment.csproj'
versioningScheme: 'byPrereleaseNumber'
nobuild: true
majorVersion: '1'
minorVersion: '0'
patchVersion: '0'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'