11trigger :
22 branches :
3- include : ["main", "master ", "develop*", "release-*", "refs/tags/*" ]
3+ include : ["main", "main ", "develop*", "release-*", "refs/tags/*" ]
44 paths :
55 exclude : [ "doc", "*.md", ".gitignore", "README.md" ]
66
@@ -205,7 +205,7 @@ jobs:
205205 $branch = $release.Split(' ')[0]
206206
207207 # start PR for release
208- $prRequestBody = @{title="Release $branch";body="";head="$branch";base="master "} | ConvertTo-Json
208+ $prRequestBody = @{title="Release $branch";body="";head="$branch";base="main "} | ConvertTo-Json
209209 $githubApiEndpoint = "https://api.github.com/repos/$env:Build_Repository_Name/pulls"
210210 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
211211
@@ -469,7 +469,7 @@ jobs:
469469 - task : NuGetToolInstaller@0
470470 inputs :
471471 versionSpec : ' 5.8.0'
472- displayName : ' Install specifc version of NuGet'
472+ displayName : ' Install specific version of NuGet'
473473
474474 - task : VSBuild@1
475475 inputs :
@@ -587,7 +587,7 @@ jobs:
587587 - Build_NXP_targets
588588 - Build_TI_SimpleLink_targets
589589 # skip build if this is a PR, submitted by nfbot and the commit message contains [version update]
590- condition : and( succeeded('Build_STM32_targets'), succeeded('Build_ESP32_targets'), succeeded('Build_NXP_targets'), succeeded('Build_TI_SimpleLink_targets'), not( eq(variables['Build.Reason'], 'PullRequest') ), or( eq(variables['Build.SourceBranchName'], 'master '), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ), ne( variables['StartReleaseCandidate'], true ) )
590+ condition : and( succeeded('Build_STM32_targets'), succeeded('Build_ESP32_targets'), succeeded('Build_NXP_targets'), succeeded('Build_TI_SimpleLink_targets'), not( eq(variables['Build.Reason'], 'PullRequest') ), or( eq(variables['Build.SourceBranchName'], 'main '), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ), ne( variables['StartReleaseCandidate'], true ) )
591591
592592 pool :
593593 vmImage : ' windows-2019'
@@ -616,15 +616,15 @@ jobs:
616616 gem install github_changelog_generator --quiet --no-document
617617 # need to call it passing both cache options with full path otherwise it won't work
618618 github_changelog_generator --token $(GitHubToken) --cache-log $env:AGENT_TEMPDIRECTORY\github-changelog-logger.log --cache-file $env:AGENT_TEMPDIRECTORY\github-changelog-http-cache --pr-wo-labels --future-release "v$env:NBGV_AssemblyVersion"
619- condition: and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), or( eq(variables['Build.SourceBranchName'], 'master '), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) )
619+ condition: and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), or( eq(variables['Build.SourceBranchName'], 'main '), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) )
620620 displayName: Generate change log
621621
622622 # generate change log without future version
623623 - powershell : |
624624 gem install github_changelog_generator --quiet --no-document
625625 # need to call it passing both cache options with full path otherwise it won't work
626626 github_changelog_generator --token $(GitHubToken) --cache-log $env:AGENT_TEMPDIRECTORY\github-changelog-logger.log --cache-file $env:AGENT_TEMPDIRECTORY\github-changelog-http-cache --pr-wo-labels
627- condition: and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), not( or( eq(variables['Build.SourceBranchName'], 'master '), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) ) )
627+ condition: and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), not( or( eq(variables['Build.SourceBranchName'], 'main '), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) ) )
628628 displayName: Generate change log
629629
630630 # push new changelog to GitHub repo
@@ -646,7 +646,7 @@ jobs:
646646 displayName: Push changelog to GitHub
647647
648648# ######################
649- # create or update GitHub release ON tags from master branch or tags
649+ # create or update GitHub release ON tags from main branch or tags
650650- job : Publish_Release
651651 dependsOn :
652652 - Build_STM32_targets
@@ -656,7 +656,7 @@ jobs:
656656 - Build_WIN32_nanoCLR
657657 - Generate_change_log
658658 # skip build if this is a PR, submitted by nfbot and the commit message contains [version update]
659- condition : and( succeeded('Build_STM32_targets'), succeeded('Build_ESP32_targets'), succeeded('Build_NXP_targets'), succeeded('Build_TI_SimpleLink_targets'), succeeded('Generate_change_log'), not( eq(variables['Build.Reason'], 'PullRequest') ), or( endsWith(variables['Build.SourceBranchName'], 'master '), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ), ne( variables['StartReleaseCandidate'], true ) )
659+ condition : and( succeeded('Build_STM32_targets'), succeeded('Build_ESP32_targets'), succeeded('Build_NXP_targets'), succeeded('Build_TI_SimpleLink_targets'), succeeded('Generate_change_log'), not( eq(variables['Build.Reason'], 'PullRequest') ), or( endsWith(variables['Build.SourceBranchName'], 'main '), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ), ne( variables['StartReleaseCandidate'], true ) )
660660
661661 pool :
662662 vmImage : ' windows-2019'
@@ -673,15 +673,15 @@ jobs:
673673 displayName : Set build number
674674
675675 - task : GitHubReleasePublish@1
676- condition : endsWith(variables['Build.SourceBranch'], 'master ')
676+ condition : endsWith(variables['Build.SourceBranch'], 'main ')
677677 displayName : Create/Update GitHub stable release
678678 inputs :
679679 githubEndpoint : ' nanoframework'
680680 githubOwner : ' nanoframework'
681681 githubRepositoryName : nf-interpreter
682682 githubTag : v$(NBGV_AssemblyVersion)
683683 githubReleaseTitle : ' nf Interpreter v$(NBGV_AssemblyVersion)'
684- githubReleaseNotes : ' Check the [changelog]($(Build.Repository.Uri)/blob/$(Build.SourceBranchName)/CHANGELOG.md).<br><br>Download images from our Bintray repo. See the available images [here](https://github.com/nanoframework/nf-interpreter/tree/master #firmware-for-reference-boards).'
684+ githubReleaseNotes : ' Check the [changelog]($(Build.Repository.Uri)/blob/$(Build.SourceBranchName)/CHANGELOG.md).<br><br>Download images from our Bintray repo. See the available images [here](https://github.com/nanoframework/nf-interpreter/tree/main #firmware-for-reference-boards).'
685685 githubTargetCommitsh : $(Build.SourceVersion)
686686 githubReleaseDraft : false
687687 githubReleasePrerelease : true
0 commit comments