@@ -44,7 +44,7 @@ stages:
44
44
inputs :
45
45
command : build
46
46
projects : ' $(solution)'
47
- configuration : ' $(build_configuration)'
47
+ arguments : ' --configuration $(build_configuration)'
48
48
displayName : Build Solution
49
49
50
50
- task : PublishPipelineArtifact@1
@@ -64,29 +64,26 @@ stages:
64
64
# ###########################
65
65
66
66
- powershell : echo "##vso[task.setvariable variable=packageVersion]$(packageVersion)-rc.$(Build.BuildId)"
67
- condition : eq (variables['Build.SourceBranchName'], 'master ')
67
+ condition : ne (variables['Build.SourceBranchName'], 'release ')
68
68
displayName : Update nuget version
69
69
70
70
- task : PowerShell@2
71
71
inputs :
72
72
filePath : ' $(Build.SourcesDirectory)/Build/BuildNuspecs.ps1'
73
73
workingDirectory : ' $(Build.SourcesDirectory)'
74
74
arguments : -path $(Build.SourcesDirectory)/Build/linq2db.LINQPad.nuspec -version $(packageVersion) -branch $(Build.SourceBranchName)
75
- condition : or (eq(variables['Build.SourceBranchName'], 'master'), eq(variables['Build.SourceBranchName'], 'release'))
76
75
displayName : Update .nuspec
77
76
78
77
- task : NuGetCommand@2
79
78
inputs :
80
79
command : ' custom'
81
80
arguments : ' pack "$(Build.SourcesDirectory)/Build/linq2db.LINQPad.nuspec" -OutputDirectory "$(Build.SourcesDirectory)/.build/nugets"'
82
- condition : or (eq(variables['Build.SourceBranchName'], 'master'), eq(variables['Build.SourceBranchName'], 'release'))
83
81
displayName : Generate linq2db.LINQPad.nupkg
84
82
85
83
- task : PublishPipelineArtifact@1
86
84
inputs :
87
85
path : ' $(Build.SourcesDirectory)/.build/nugets/'
88
86
artifact : ' $(artifact_nuget)'
89
- condition : or (eq(variables['Build.SourceBranchName'], 'master'), eq(variables['Build.SourceBranchName'], 'release'))
90
87
displayName : Publish nuget to Artifacts
91
88
92
89
- task : NuGetCommand@2
0 commit comments