From 6f6abd7f05a2fa1e3472e052409cab68e9b2b11b Mon Sep 17 00:00:00 2001 From: Casey Waldren Date: Fri, 18 Oct 2024 13:39:09 -0700 Subject: [PATCH] ci: add release-please support (#32) Adds release-please config, removes releaser config. --- .github/workflows/release-please.yml | 15 +++++++++++++++ .ldrelease/config.yml | 23 ----------------------- .release-please-manifest.json | 3 +++ release-please-config.json | 9 +++++++++ 4 files changed, 27 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/release-please.yml delete mode 100644 .ldrelease/config.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..baf8347 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,15 @@ +name: Run Release Please + +on: + push: + branches: + - v3 + workflow_dispatch: + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + with: + target-branch: v3 diff --git a/.ldrelease/config.yml b/.ldrelease/config.yml deleted file mode 100644 index 2f55276..0000000 --- a/.ldrelease/config.yml +++ /dev/null @@ -1,23 +0,0 @@ -version: 2 - -repo: - public: go-sdk-common - private: go-sdk-common-private - -jobs: - - docker: - image: golang:1.18-buster - template: - name: go - -branches: - - name: v3 - description: 3.x - for Go SDK 6+ - - name: v2 - description: 2.x - for Go SDK 5+ - - name: v1 - description: 1.x - for Go SDK 4.x - -publications: - - url: https://godoc.org/github.com/launchdarkly/go-sdk-common/v3 - description: documentation diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..ada7355 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "3.1.0" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..57425bc --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,9 @@ +{ + "packages" : { + "." : { + "release-type" : "go", + "versioning" : "default", + "bootstrap-sha" : "e12fc411b5101866b93c9ebb306483a48438c6dc" + } + } +}