80
80
dependsOn : Build
81
81
condition : and(succeeded(),or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/tags/v3.')))
82
82
steps :
83
+ - checkout : none
83
84
- task : DownloadPipelineArtifact@2
84
85
inputs :
86
+ path : $(Pipeline.Workspace)/Nuget_Package
85
87
artifact : ' Nuget_Package'
86
88
87
89
- task : PowerShell@2
@@ -108,7 +110,7 @@ jobs:
108
110
condition : and(succeeded(),eq(variables['IsPrerelease'] ,'True'))
109
111
inputs :
110
112
command : push
111
- packagesToPush : ' $(System.ArtifactsDirectory )/**/*.nupkg;!$(System.ArtifactsDirectory )/**/*.symbols.nupkg'
113
+ packagesToPush : ' $(Pipeline.Workspace )/**/*.nupkg;!$(Pipeline.Workspace )/**/*.symbols.nupkg'
112
114
nuGetFeedType : external
113
115
publishFeedCredentials : ' Github Nuget Feed'
114
116
@@ -117,7 +119,7 @@ jobs:
117
119
condition : and(succeeded(), eq(variables['IsPrerelease'] ,'True'))
118
120
inputs :
119
121
command : push
120
- packagesToPush : ' $(System.ArtifactsDirectory )/**/*.nupkg;!$(System.ArtifactsDirectory )/**/*.symbols.nupkg'
122
+ packagesToPush : ' $(Pipeline.Workspace )/**/*.nupkg;!$(Pipeline.Workspace )/**/*.symbols.nupkg'
121
123
nuGetFeedType : external
122
124
publishFeedCredentials : MyGet
123
125
@@ -126,7 +128,7 @@ jobs:
126
128
condition : and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v3.'),eq(variables['IsPrerelease'] ,'False'))
127
129
inputs :
128
130
command : push
129
- packagesToPush : ' $(System.ArtifactsDirectory )/**/*.nupkg;!$(System.ArtifactsDirectory )/**/*.symbols.nupkg'
131
+ packagesToPush : ' $(Pipeline.Workspace )/**/*.nupkg;!$(Pipeline.Workspace )/**/*.symbols.nupkg'
130
132
nuGetFeedType : external
131
133
publishFeedCredentials : Nuget.org
132
134
@@ -139,5 +141,5 @@ jobs:
139
141
tagSource : gitTag
140
142
title : ' $(Build.BuildNumber) ($(ReleaseDate))'
141
143
releaseNotesSource : inline
142
- assets : ' $(System.ArtifactsDirectory )/**/*.nupkg'
144
+ assets : ' $(Pipeline.Workspace )/**/*.nupkg'
143
145
isDraft : true
0 commit comments