2021-05-17 16:47:37 +03:00
|
|
|
trigger:
|
|
|
|
branches:
|
|
|
|
include: [main, develop, "release-*" ]
|
|
|
|
paths:
|
2021-05-25 01:45:14 +03:00
|
|
|
exclude: [README.md, LICENSE.md, NuGet.Config, .github_changelog_generator, .gitignore]
|
2021-05-17 16:47:37 +03:00
|
|
|
tags:
|
|
|
|
include: ["v*"]
|
|
|
|
|
|
|
|
# PR always trigger build
|
|
|
|
|
|
|
|
# add nf-tools repo to resources (for Azure Pipelines templates)
|
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: templates
|
|
|
|
type: github
|
|
|
|
name: nanoframework/nf-tools
|
|
|
|
endpoint: nanoframework
|
|
|
|
|
|
|
|
pool:
|
2021-05-25 01:45:14 +03:00
|
|
|
vmImage: 'windows-2019'
|
2021-05-17 16:47:37 +03:00
|
|
|
|
|
|
|
variables:
|
|
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
|
|
solution: '**/*.sln'
|
|
|
|
buildPlatform: 'Any CPU'
|
|
|
|
buildConfiguration: 'Release'
|
|
|
|
nugetPackageName: 'nanoFramework.System.IO.Ports'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
# step from template @ nf-tools repo
|
|
|
|
# all build, update and publish steps
|
|
|
|
- template: azure-pipelines-templates/class-lib-build.yml@templates
|
|
|
|
parameters:
|
|
|
|
sonarCloudProject: 'nanoframework.System.IO.Ports'
|
|
|
|
|
|
|
|
# step from template @ nf-tools repo
|
|
|
|
# report error
|
|
|
|
- template: azure-pipelines-templates/discord-webhook-task.yml@templates
|
|
|
|
parameters:
|
|
|
|
status: 'failure'
|
|
|
|
webhookUrl: '$(DiscordWebhook)'
|
|
|
|
message: ''
|