-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy pathvsts-ci.yml
42 lines (35 loc) · 1.01 KB
/
vsts-ci.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
resources:
- repo: self
trigger:
branches:
include:
- master
variables:
NUGET_PACKAGES: $(Pipeline.Workspace)/.nuget/packages
pool:
vmImage: windows-latest
steps:
# - task: CacheBeta@0
# displayName: Cache NuGet packages
# inputs:
# key: nuget | ./src/Plugin.Fingerprint/packages.lock.json
# path: $(NUGET_PACKAGES)
- task: DotNetCoreCLI@2
displayName: Restore Packages
inputs:
command: 'restore'
projects: './src/Build.sln'
feedsToUse: 'select'
- task: MSBuild@1
displayName: Build & Package
inputs:
solution: ./src/Build.sln
msbuildArguments: /restore /t:build /p:CreatePackage=true /p:ContinuousIntegrationBuild=true /p:PackageOutputPath=$(Build.ArtifactStagingDirectory)\artifacts
configuration: Release
maximumCpuCount: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)\artifacts
ArtifactName: artifacts
publishLocation: Container
condition: always()