@@ -20,10 +20,6 @@ trigger:
2020 - config/*
2121 - .github/*
2222
23- tags :
24- include :
25- - v*
26-
2723# PR always trigger build
2824pr :
2925 autoCancel : true
@@ -176,7 +172,7 @@ jobs:
176172
177173 # update could build number (only possible if this is not a PR from a fork)
178174 - task : PowerShell@2
179- condition : and( succeeded(), ne(variables['system.pullrequest.isfork'], true) )
175+ condition : succeeded()
180176 displayName : Update cloud build number
181177 inputs :
182178 targetType : ' inline'
@@ -255,16 +251,16 @@ jobs:
255251 packagesToPush : ' $(Build.ArtifactStagingDirectory)/*.nupkg'
256252 publishFeedCredentials : ' NuGet-$(System.TeamProject)'
257253
258- # create or update GitHub release ON tags from release or main branches
254+ # create or update GitHub release
259255 - task : GithubRelease@1
260256 condition : >-
261257 and(
262258 succeeded(),
263259 eq(variables['System.PullRequest.PullRequestId'], ''),
264- not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ),
265- eq(variables['StartReleaseCandidate '], false)
260+ startsWith(variables['Build.SourceBranch'], 'refs/heads/develop' ),
261+ eq(variables['UPDATE_DEPENDENTS '], ' false' )
266262 )
267- displayName : Create/Update GitHub stable release
263+ displayName : Create/Update GitHub release
268264 inputs :
269265 action : edit
270266 gitHubConnection : ' github.com_nano-$(System.TeamProject)'
@@ -286,7 +282,7 @@ jobs:
286282 eq(dependencies.Get_Build_Flags.outputs['GetPRLabels.RUN_UPDATE_DEPENDENTS'], 'true'),
287283 eq(variables['UPDATE_DEPENDENTS'], 'true')
288284 ),
289- not(startsWith( variables['Build.SourceBranch '], 'refs/tags/v'))
285+ eq( variables['System.PullRequest.PullRequestId '], ''),
290286 )
291287
292288 dependsOn :
0 commit comments