-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
46 lines (39 loc) · 1.24 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
trigger:
- master
pool: 'Default'
variables:
solution: '$(Build.SourcesDirectory)/Jmelosegui.DevOpsCLI.sln'
BuildConfiguration: 'Release'
BuildPlatform: 'Any Cpu'
MSBuildPath: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin"'
steps:
- task: DeleteFiles@1
displayName: 'Clean up Nuget package files'
inputs:
SourceFolder: '$(Build.SourcesDirectory)'
Contents: '**/*.nupkg'
# - task: NuGetToolInstaller@0
# displayName: 'Use NuGet 5.2.0'
# inputs:
# versionSpec: 5.2.0
# - task: NuGetCommand@2
# displayName: 'Nuget Restore'
# inputs:
# command: 'restore'
# restoreSolution: '$(solution)'
# feedsToUse: 'config'
# nugetConfigPath: '$(Build.SourcesDirectory)/nuget.config'
- task: VSBuild@1
displayName: 'Build Solution'
inputs:
solution:
msbuildArgs: '/t:restore,build /p:OutDir=$(Build.BinariesDirectory) /p:ContinuousIntegrationBuild=true'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
- task: NuGetCommand@2
displayName: 'Nuget Push'
inputs:
command: 'push'
packagesToPush: '$(Build.SourcesDirectory)/**/*.nupkg;!$(Build.SourcesDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'feedz'