@@ -149,13 +149,42 @@ steps:
149
149
msbuildArguments : ' -t:pack -p:PackageOutputPath=$(Build.SourcesDirectory)\_nuget\ECMAHelper -p:PackageVersion=$(CurrentPackageVersion)'
150
150
151
151
# Publish Nuget Package
152
+ - task : GitHubRelease@1
153
+ displayName : GitHub Release Offical
154
+ condition : and(succeeded(), and(eq(variables['ECMA2YamlNugetPush'], 'Yes'), eq(variables['NugetVersionType'], 'release')))
155
+ inputs :
156
+ gitHubConnection : ' ECMA2Yaml'
157
+ repositoryName : ' $(Build.Repository.Name)'
158
+ action : ' create'
159
+ target : ' $(Build.SourceVersion)'
160
+ tagSource : ' userSpecifiedTag'
161
+ tag : ' $(CurrentPackageVersion)'
162
+ assets : ' $(Build.SourcesDirectory)/_nuget/ECMA2Yaml/*.nupkg'
163
+ isPreRelease : false
164
+ changeLogCompareToRelease : ' lastFullRelease'
165
+ changeLogType : ' commitBased'
166
+ - task : GitHubRelease@1
167
+ displayName : GitHub Release Prerelease
168
+ condition : and(succeeded(), and(eq(variables['ECMA2YamlNugetPush'], 'Yes'), eq(variables['NugetVersionType'], 'prerelease')))
169
+ inputs :
170
+ gitHubConnection : ' ECMA2Yaml'
171
+ repositoryName : ' $(Build.Repository.Name)'
172
+ action : ' create'
173
+ target : ' $(Build.SourceVersion)'
174
+ tagSource : ' userSpecifiedTag'
175
+ tag : ' $(CurrentPackageVersion)'
176
+ assets : ' $(Build.SourcesDirectory)/_nuget/ECMA2Yaml/*.nupkg'
177
+ isPreRelease : true
178
+ changeLogCompareToRelease : ' lastFullRelease'
179
+ changeLogType : ' commitBased'
152
180
- task : DotNetCoreCLI@2
153
181
displayName : Nuget Publish ECMA2Yaml
154
182
condition : and(succeeded(), eq(variables['ECMA2YamlNugetPush'], 'Yes'))
155
183
inputs :
156
184
command : ' push'
157
185
packagesToPush : ' $(Build.SourcesDirectory)/_nuget/ECMA2Yaml/*.nupkg'
158
- feedPublish : ' OpenPublishingService'
186
+ nuGetFeedType : ' internal'
187
+ publishVstsFeed : ' d3d54af3-265a-4f18-95f6-9a46397ca583/fb2f1e25-b247-417a-a19f-40ba5a96d884'
159
188
- task : DotNetCoreCLI@2
160
189
displayName : Nuget Publish ECMAHelper
161
190
condition : and(succeeded(), eq(variables['ECMA2YamlNugetPush'], 'Yes'))
0 commit comments