-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
47 lines (40 loc) · 1.16 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
major: 0
minor: 1
patch: 0
prefix: $(major).$(minor).$(patch)
Conf: 'Release'
projectPath: Picsum/Picsum.csproj
steps:
- task: DotNetCoreCLI@2
displayName: 'Restore'
inputs:
command: 'restore'
projects: Picsum/Picsum.csproj
feedsToUse: 'select'
vstsFeed: 'cc23d1bb-b189-4c5a-8025-9d981f84c158'
- task: DotNetCoreCLI@2
displayName: 'Build'
inputs:
command: 'build'
arguments: '--no-restore -c $(Conf) -p:VersionPrefix=$(prefix) -p:AssemblyVersion=$(prefix)'
projects: Picsum/Picsum.csproj
- task: PowerShell@2
displayName: 'Moving files'
inputs:
targetType: 'inline'
script: 'Move-Item -Path Picsum/bin/$(Conf)/*.nupkg -Destination $(Build.ArtifactStagingDirectory)'
failOnStderr: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: 'artifacs'
publishLocation: 'Container'