@@ -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- inputs :
57- command : push
58- nuGetFeedType : external
59- allowPackageConflicts : true
60- packagesToPush :
61- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.Http.Client.$(MY_NUGET_VERSION).nupkg
62- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.Http.Client.$(MY_NUGET_VERSION).snupkg
63- publishFeedCredentials : ' AzureArtifacts-$(System.TeamProject)'
64- includeSymbols : true
65- condition : and( succeeded(), ne( variables['StartReleaseCandidate'], true ) )
66- continueOnError : true
67- displayName : Push "Client" variant NuGet package to Azure Artifacts
68-
69- - task : NuGetCommand@2
70- inputs :
71- command : push
72- nuGetFeedType : external
73- allowPackageConflicts : true
74- packagesToPush :
75- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.Http.Server.$(MY_NUGET_VERSION).nupkg
76- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.Http.Server.$(MY_NUGET_VERSION).snupkg
77- publishFeedCredentials : ' AzureArtifacts-$(System.TeamProject)'
78- includeSymbols : true
79- condition : and( succeeded(), ne( variables['StartReleaseCandidate'], true ) )
80- continueOnError : true
81- displayName : Push "Server" variant NuGet package to Azure Artifacts
82-
83- - task : NuGetCommand@2
84- inputs :
85- command : push
86- nuGetFeedType : external
87- allowPackageConflicts : true
88- packagesToPush :
89- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.Http.Client.$(MY_NUGET_VERSION).nupkg
90- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.Http.Client.$(MY_NUGET_VERSION).snupkg
91- publishFeedCredentials : ' NuGet-$(System.TeamProject)'
92- includeSymbols : true
93- condition : and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), ne( variables['StartReleaseCandidate'], true ) )
94- continueOnError : true
95- displayName : Push "Client" variant NuGet package to NuGet
96-
97- - task : NuGetCommand@2
98- inputs :
99- command : push
100- nuGetFeedType : external
101- allowPackageConflicts : true
102- packagesToPush :
103- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.Http.Server.$(MY_NUGET_VERSION).nupkg
104- $(Build.ArtifactStagingDirectory)/nanoFramework.System.Net.Http.Server.$(MY_NUGET_VERSION).snupkg
105- publishFeedCredentials : ' NuGet-$(System.TeamProject)'
106- includeSymbols : true
107- condition : and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), ne( variables['StartReleaseCandidate'], true ) )
108- continueOnError : true
109- displayName : Push "Server" variant NuGet package to NuGet
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,7 +75,13 @@ 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 :
13287 action : edit
@@ -144,7 +99,19 @@ steps:
14499# update dependents
145100- task : UpdatenFDependencies@1
146101 displayName : Update dependent class libs
147- condition : or( and( succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), eq(variables['StartReleaseCandidate'], 'false') ), and( succeeded(), contains(variables['getCommitMessage.COMMIT_MESSAGE'], '***UPDATE_DEPENDENTS***'), eq(variables['StartReleaseCandidate'], 'false') ), eq(variables['UPDATE_DEPENDENTS'], 'true') )
102+ condition : >-
103+ or(
104+ and(
105+ succeeded(),
106+ startsWith(variables['Build.SourceBranch'], 'refs/tags/v'),
107+ eq(variables['StartReleaseCandidate'], 'false')),
108+ and(
109+ succeeded(),
110+ contains(variables['getCommitMessage.COMMIT_MESSAGE'], '***UPDATE_DEPENDENTS***'),
111+ eq(variables['StartReleaseCandidate'], 'false')
112+ ),
113+ eq(variables['UPDATE_DEPENDENTS'], 'true')
114+ )
148115 inputs :
149116 gitHubToken : $(GitHubToken)
150117 repositoriesToUpdate : |
0 commit comments