forked from shinyorg/shiny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
35 lines (27 loc) · 1.05 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
resources:
- repo: self
pool:
vmImage: Hosted VS2017
demands: msbuild
#Your build pipeline references an undefined variable named ‘BuildConfiguration’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
steps:
- task: NuGetToolInstaller@0
displayName: 'Use NuGet 4.9.2'
inputs:
versionSpec: 4.9.2
- task: NuGetCommand@2
displayName: 'NuGet restore'
- task: MSBuild@1
displayName: Build
inputs:
solution: Libs.sln
msbuildArguments: '/t:restore;build;pack /p:PackageVersion=$(Build.BuildNumber) /p:PackageOutputPath=$(build.artifactstagingdirectory)/public /p:AssemblyFileVersion=$(Build.BuildNumber) '
clean: true
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory) '
inputs:
SourceFolder: '$(build.sourcesdirectory)'
Contents: '**\bin\$(BuildConfiguration)\**\*.nupkg'
TargetFolder: '$(build.artifactstagingdirectory) '
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'