2022-02-18 02:44:56 +03:00
|
|
|
# Copyright (c) .NET Foundation and Contributors
|
|
|
|
# See LICENSE file in the project root for full license information.
|
|
|
|
|
2018-11-29 14:04:44 +03:00
|
|
|
trigger:
|
|
|
|
branches:
|
2022-02-18 02:44:56 +03:00
|
|
|
include:
|
|
|
|
- main
|
|
|
|
- develop
|
|
|
|
- release-*
|
2018-11-29 14:04:44 +03:00
|
|
|
paths:
|
2022-02-18 02:44:56 +03:00
|
|
|
exclude:
|
|
|
|
- .github_changelog_generator
|
|
|
|
- .gitignore
|
|
|
|
- CHANGELOG.md
|
|
|
|
- CODE_OF_CONDUCT.md
|
|
|
|
- LICENSE.md
|
|
|
|
- README.md
|
|
|
|
- NuGet.Config
|
|
|
|
- assets/*
|
|
|
|
- config/*
|
|
|
|
- .github/*
|
|
|
|
|
2020-06-16 13:38:35 +03:00
|
|
|
tags:
|
2022-02-18 02:44:56 +03:00
|
|
|
include:
|
|
|
|
- v*
|
2018-11-29 14:04:44 +03:00
|
|
|
|
2020-06-16 13:38:35 +03:00
|
|
|
# PR always trigger build
|
2021-11-25 15:45:11 +03:00
|
|
|
pr:
|
|
|
|
autoCancel: true
|
2018-11-29 14:04:44 +03:00
|
|
|
|
|
|
|
# add nf-tools repo to resources (for Azure Pipelines templates)
|
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: templates
|
|
|
|
type: github
|
|
|
|
name: nanoframework/nf-tools
|
2018-12-14 12:36:44 +03:00
|
|
|
endpoint: nanoframework
|
2018-11-29 14:04:44 +03:00
|
|
|
|
|
|
|
pool:
|
2022-02-18 02:44:56 +03:00
|
|
|
vmImage: 'windows-latest'
|
2018-11-29 14:04:44 +03:00
|
|
|
|
|
|
|
variables:
|
2024-01-21 01:26:49 +03:00
|
|
|
- group: sign-client-credentials
|
|
|
|
- name: DOTNET_NOLOGO
|
|
|
|
value: true
|
|
|
|
- name: buildPlatform
|
|
|
|
value: 'Any CPU'
|
|
|
|
- name: buildConfiguration
|
|
|
|
value: 'Release'
|
|
|
|
- name: solution
|
|
|
|
value: 'nanoFramework.Windows.Storage.Streams.sln'
|
|
|
|
- name: nugetPackageName
|
|
|
|
value: 'nanoFramework.Windows.Storage.Streams'
|
2018-11-29 14:04:44 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
# step from template @ nf-tools repo
|
|
|
|
# all build, update and publish steps
|
2019-04-23 12:47:29 +03:00
|
|
|
- template: azure-pipelines-templates/class-lib-build.yml@templates
|
2019-06-07 21:13:07 +03:00
|
|
|
parameters:
|
2019-06-12 18:19:44 +03:00
|
|
|
sonarCloudProject: 'nanoframework_lib-Windows.Storage.Streams'
|
2018-11-29 14:04:44 +03:00
|
|
|
|
|
|
|
# update dependencies
|
2022-01-11 22:09:45 +03:00
|
|
|
# update dependents
|
|
|
|
- template: azure-pipelines-templates/update-dependents.yml@templates
|
|
|
|
parameters:
|
2018-11-29 14:04:44 +03:00
|
|
|
repositoriesToUpdate: |
|
2021-03-25 17:51:20 +03:00
|
|
|
Windows.Storage
|
2018-11-29 14:04:44 +03:00
|
|
|
|
|
|
|
# step from template @ nf-tools repo
|
|
|
|
# report error
|
|
|
|
- template: azure-pipelines-templates/discord-webhook-task.yml@templates
|
|
|
|
parameters:
|
|
|
|
status: 'failure'
|
|
|
|
webhookUrl: '$(DiscordWebhook)'
|
|
|
|
message: ''
|