From 3c74f2fa52c54c68f84242290fa2323e33b3dae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Thu, 30 Jan 2025 15:37:51 +0000 Subject: [PATCH] Work CI-CD - Add github action to generate changelog. - Remove private feed from nuget config. - Fix AZDO trigger list. ***NO_CI*** --- .github/.changelog-config.json | 45 ++++++++++++++++++++++++ .github/workflows/generate-changelog.yml | 16 +++++++++ NuGet.Config | 1 - azure-pipelines.yml | 3 -- 4 files changed, 61 insertions(+), 4 deletions(-) create mode 100644 .github/.changelog-config.json create mode 100644 .github/workflows/generate-changelog.yml diff --git a/.github/.changelog-config.json b/.github/.changelog-config.json new file mode 100644 index 0000000..e68757b --- /dev/null +++ b/.github/.changelog-config.json @@ -0,0 +1,45 @@ +{ + "categories": [ + { + "title": "## New Features and enhancements", + "labels": [ + "Type: enhancement" + ], + "exhaustive": true + }, + { + "title": "## Bug Fixes", + "labels": [ + "Type: bug" + ], + "exhaustive": true + }, + { + "title": "## Documentation", + "labels": [ + "Type: documentation" + ], + "exhaustive": true + }, + { + "title": "## ⚠️ Breaking Changes", + "labels": [ + "Breaking-Change" + ], + "exhaustive": true + }, + { + "title": "## Updated dependencies", + "labels": [ + "Type: dependencies" + ], + "exhaustive": true + } + ], + "sort": "ASC", + "template": "${{CHANGELOG}}\n\n**Full Changelog:** ${{RELEASE_DIFF}}\n\nThe following NuGet package is available from this release:\n\n:package: [nanoFramework.Hosting](https://www.nuget.org/packages/nanoFramework.Hosting/)", + "pr_template": "* ${{TITLE}} by @${{AUTHOR}} in #${{NUMBER}}", + "empty_template": "- no changes", + "max_tags_to_fetch": 200, + "max_pull_requests": 200 +} diff --git a/.github/workflows/generate-changelog.yml b/.github/workflows/generate-changelog.yml new file mode 100644 index 0000000..e52c4d0 --- /dev/null +++ b/.github/workflows/generate-changelog.yml @@ -0,0 +1,16 @@ +# Copyright (c) .NET Foundation and Contributors +# See LICENSE file in the project root for full license information. + +name: Generate Changelog +run-name: Generate changelog + +on: + push: + tags: + - '*' + +jobs: + compose_changelog: + name: nanoFramework + uses: nanoframework/nf-tools/.github/workflows/generate-changelog.yml@main + secrets: inherit diff --git a/NuGet.Config b/NuGet.Config index ef0bacf..b02a981 100644 --- a/NuGet.Config +++ b/NuGet.Config @@ -2,6 +2,5 @@ - diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 66cbfe7..27d97e7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,15 +9,12 @@ trigger: - release-* paths: exclude: - - .github_changelog_generator - .gitignore - CHANGELOG.md - - CODE_OF_CONDUCT.md - LICENSE.md - README.md - NuGet.Config - assets/* - - config/* - .github/* # PR always trigger build