From 84d147468e93912bf4f2865e55faa68853230e8f Mon Sep 17 00:00:00 2001 From: pythoninthegrass <4097471+pythoninthegrass@users.noreply.github.com> Date: Wed, 21 Feb 2024 00:45:59 -0600 Subject: [PATCH] ci: add automatic semver Will need to supply personal access token as repo secret `RELEASE_PLEASE_TOKEN` --- .github/workflows/release-please.yml | 25 +++++++++++++++++++++++++ .release-please-manifest.json | 3 +++ release-please-config.json | 13 +++++++++++++ 3 files changed, 41 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..61be601 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,25 @@ +name: Release Please + +on: + push: + branches: + - 'main' + +permissions: + contents: write + pull-requests: write + +jobs: + release-please: + runs-on: ubuntu-latest + + steps: + - name: Release with release-please + uses: google-github-actions/release-please-action@v4 + with: + # PAT with write access to the repository + token: ${{ secrets.RELEASE_PLEASE_TOKEN }} + # optional. customize path to release-please-config.json + config-file: release-please-config.json + # optional. customize path to .release-please-manifest.json + manifest-file: .release-please-manifest.json diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..573f090 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "3.8.0" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..624fd83 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,13 @@ +{ + "packages": { + ".": { + "changelog-path": "CHANGELOG.md", + "release-type": "python", + "bump-minor-pre-major": false, + "bump-patch-for-minor-pre-major": false, + "draft": false, + "prerelease": false + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +} \ No newline at end of file