From 8b249cfa9273c14ba5874db37ed099d52818b2b2 Mon Sep 17 00:00:00 2001 From: DeveloperC Date: Sat, 19 Oct 2024 12:48:27 +0100 Subject: [PATCH] ci: adding release-please (#50) Using the release process from Google's release-please tooling and workflow. Google's release-please opens a release pull request, which automates CHANGELOG generation and version bumps, by parsing git history for Conventional Commit messages. Upon merging the release pull request a new release is created. * https://github.com/googleapis/release-please * https://github.com/googleapis/release-please-action --- .github/workflows/release-please.yml | 19 +++++++++++++++++++ .release-please-manifest.json | 1 + release-please-config.json | 9 +++++++++ 3 files changed, 29 insertions(+) create mode 100644 .github/workflows/release-please.yml create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..b4c6660 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,19 @@ +name: Continuous Delivery (CD) + +on: + push: + branches: + - main + +# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs +permissions: + contents: write + pull-requests: write + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + with: + token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..ca20723 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1 @@ +{".":"6.0.1"} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..351d3cc --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,9 @@ +{ + "changelog-type": "github", + "release-type": "rust", + "pull-request-title-pattern": "chore: release ${version}", + "include-component-in-tag": false, + "packages": { + ".": {} + } +}