From d34546db44c04ad1c7886c262372019d77829488 Mon Sep 17 00:00:00 2001 From: Tero Virtanen Date: Wed, 10 Apr 2024 09:36:49 +0300 Subject: [PATCH] build: release-please configuration OH-81 --- .github/workflows/release-please.yml | 16 ++++++++++++++++ .release-please-manifest.json | 3 +++ azure-pipelines-release.yml | 8 +++----- release-please-config.json | 25 +++++++++++++++++++++++++ 4 files changed, 47 insertions(+), 5 deletions(-) create mode 100755 .github/workflows/release-please.yml create mode 100755 .release-please-manifest.json create mode 100755 release-please-config.json diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100755 index 0000000..aa994a0 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,16 @@ +# .github/workflows/release-please.yml +name: release-please +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v4 diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100755 index 0000000..37fcefa --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "1.0.0" +} diff --git a/azure-pipelines-release.yml b/azure-pipelines-release.yml index fa46710..ea57750 100644 --- a/azure-pipelines-release.yml +++ b/azure-pipelines-release.yml @@ -1,12 +1,10 @@ # Continuous integration (CI) triggers cause a pipeline to run whenever you push # an update to the specified branches or you push specified tags. trigger: - branches: + batch: true + tags: include: - - release - paths: - exclude: - - README.md + - atv-v* # Pull request (PR) triggers cause a pipeline to run whenever a pull request is # opened with one of the specified target branches, or when updates are made to diff --git a/release-please-config.json b/release-please-config.json new file mode 100755 index 0000000..1fe59ab --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,25 @@ +{ + "bootstrap-sha": "0384e330f24baa4fbc43fa9fb2d283b59d25090b", + "sequential-calls": true, + "packages": { + ".": { + "release-type": "python", + "package-name": "atv", + "changelog-sections": [ + {"type": "feat", "section": "Features"}, + {"type": "fix", "section": "Bug Fixes"}, + {"type": "perf", "section": "Performance Improvements"}, + {"type": "deps", "section": "Dependencies"}, + {"type": "revert", "section": "Reverts"}, + {"type": "docs", "section": "Documentation"}, + {"type": "style", "section": "Styles", "hidden": true}, + {"type": "chore", "section": "Miscellaneous Chores", "hidden": true}, + {"type": "refactor", "section": "Code Refactoring", "hidden": true}, + {"type": "test", "section": "Tests", "hidden": true}, + {"type": "build", "section": "Build System", "hidden": true}, + {"type": "ci", "section": "Continuous Integration", "hidden": true} + ] + } + }, + "plugins": ["sentence-case"] +}