|
36 | 36 | feedsToUse: config |
37 | 37 | nugetConfigPath: source/NuGet.config |
38 | 38 |
|
39 | | -- template: azure-pipelines-templates/nb-gitversioning.yml@templates |
| 39 | +- template: azure-pipelines-templates/nb-gitversioning-class-lib.yml@templates |
40 | 40 |
|
41 | 41 | - task: InstallnFBuildComponents@1 |
42 | 42 | displayName: Install nanoFramework MSBuild components |
@@ -96,3 +96,33 @@ steps: |
96 | 96 | publishFeedCredentials: 'NuGet' |
97 | 97 | condition: and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), contains(variables['Build.SourceBranchName'], 'tags') ) |
98 | 98 | displayName: Push NuGet packages to NuGet |
| 99 | + |
| 100 | +- task: UseRubyVersion@0 |
| 101 | + inputs: |
| 102 | + versionSpec: '>= 2.4' |
| 103 | + addToPath: true |
| 104 | + condition: and( succeeded(), ne(variables['Build.Reason'], 'PullRequest') ) |
| 105 | + displayName: Setup Ruby |
| 106 | + |
| 107 | +# generate change log including future version |
| 108 | +- script: | |
| 109 | + gem install github_changelog_generator |
| 110 | + bundle exec github_changelog_generator --token $(GitHubToken) --future-release "v$(NBGV_Version)" |
| 111 | + condition: and( succeeded(), or( eq(variables['Build.SourceBranchName'], 'master'), contains(variables['Build.SourceBranchName'], 'release') ) ) |
| 112 | + displayName: Generate change log |
| 113 | + |
| 114 | +# generate change log including future version |
| 115 | +- script: | |
| 116 | + gem install github_changelog_generator |
| 117 | + bundle exec github_changelog_generator --token $(GitHubToken) |
| 118 | + condition: and( succeeded(), not( or( eq(variables['Build.SourceBranchName'], 'master'), contains(variables['Build.SourceBranchName'], 'release') ) ) ) |
| 119 | + displayName: Generate change log |
| 120 | + |
| 121 | +# step from template @ nf-tools repo |
| 122 | +- template: azure-pipelines-templates/discord-webhook.yml@templates |
| 123 | + parameters: |
| 124 | + status: 'failure' |
| 125 | + webhookUrl: '$(DiscordWebhook)' |
| 126 | + message: '' |
| 127 | + condition: failed() |
| 128 | + displayName: report build failure to Discord |
0 commit comments