@@ -51,66 +51,15 @@ steps:
5151
5252- template : azure-pipelines-templates/class-lib-publish.yml@templates
5353
54- # need to push remaining packages to NuGet individually because the template above can only push one package (happens on tag builds for any branch)
55- - task : NuGetCommand@2
56- condition : and( succeeded(), ne( variables['StartReleaseCandidate'], true ) )
57- continueOnError : true
58- displayName : Push "Client" variant NuGet package to Azure Artifacts
59- inputs :
60- command : push
61- nuGetFeedType : external
62- allowPackageConflicts : true
63- packagesToPush :
64- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.WebSockets.Client.$(MY_NUGET_VERSION).nupkg
65- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.WebSockets.Client.$(MY_NUGET_VERSION).snupkg
66- publishFeedCredentials : ' AzureArtifacts-$(System.TeamProject)'
67- includeSymbols : true
68-
69- - task : NuGetCommand@2
70- condition : and( succeeded(), ne( variables['StartReleaseCandidate'], true ) )
71- continueOnError : true
72- displayName : Push "Server" variant NuGet package to Azure Artifacts
73- inputs :
74- command : push
75- nuGetFeedType : external
76- allowPackageConflicts : true
77- packagesToPush :
78- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.WebSockets.Server.$(MY_NUGET_VERSION).nupkg
79- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.WebSockets.Server.$(MY_NUGET_VERSION).snupkg
80- publishFeedCredentials : ' AzureArtifacts-$(System.TeamProject)'
81- includeSymbols : true
82-
83- - task : NuGetCommand@2
84- condition : and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), ne( variables['StartReleaseCandidate'], true ) )
85- continueOnError : true
86- displayName : Push "Client" variant NuGet package to NuGet
87- inputs :
88- command : push
89- nuGetFeedType : external
90- allowPackageConflicts : true
91- packagesToPush :
92- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.WebSockets.Client.$(MY_NUGET_VERSION).nupkg
93- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.WebSockets.Client.$(MY_NUGET_VERSION).snupkg
94- publishFeedCredentials : ' NuGet-$(System.TeamProject)'
95- includeSymbols : true
96-
97- - task : NuGetCommand@2
98- condition : and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), ne( variables['StartReleaseCandidate'], true ) )
99- continueOnError : true
100- displayName : Push "Server" variant NuGet package to NuGet
101- inputs :
102- command : push
103- nuGetFeedType : external
104- allowPackageConflicts : true
105- packagesToPush :
106- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.WebSockets.Server.$(MY_NUGET_VERSION).nupkg
107- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.WebSockets.Server.$(MY_NUGET_VERSION).snupkg
108- publishFeedCredentials : ' NuGet-$(System.TeamProject)'
109- includeSymbols : true
110-
11154# create or update GitHub release
11255- task : GithubRelease@1
113- condition : and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], ''), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ), ne( variables['StartReleaseCandidate'], true ) )
56+ condition : >-
57+ and(
58+ succeeded(),
59+ eq(variables['System.PullRequest.PullRequestId'], ''),
60+ not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v')),
61+ eq(variables['StartReleaseCandidate'], false)
62+ )
11463 displayName : Create/Update GitHub PREVIEW release
11564 inputs :
11665 gitHubConnection : ' github.com_nano-$(System.TeamProject)'
@@ -126,9 +75,16 @@ steps:
12675
12776# create or update GitHub release ON tags from release or main branches
12877- task : GithubRelease@1
129- condition : and( succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), not(contains(variables['Build.SourceBranch'], 'preview') ), ne( variables['StartReleaseCandidate'], true ) )
78+ condition : >-
79+ and(
80+ succeeded(),
81+ startsWith(variables['Build.SourceBranch'], 'refs/tags/v'),
82+ not(contains(variables['Build.SourceBranch'], 'preview')),
83+ eq(variables['StartReleaseCandidate'], false)
84+ )
13085 displayName : Create/Update GitHub stable release
13186 inputs :
87+ action : edit
13288 gitHubConnection : ' github.com_nano-$(System.TeamProject)'
13389 tagSource : userSpecifiedTag
13490 tag : v$(MY_NUGET_VERSION)
0 commit comments