From 00d6a80e30ab7ffdbae4a62fc19e39564a2cfb5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Dzivjak?= Date: Fri, 13 Feb 2026 23:47:25 +0100 Subject: [PATCH] feat: release please setup --- .github/workflows/ci.yaml | 24 ++++++++++++++++++++++++ .release-please-manifest.json | 3 +++ release-please-config.json | 16 ++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a14c117..1de1ec2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -66,3 +66,27 @@ jobs: with: sarif_file: "govulncheck.sarif" category: "govulncheck" + + release-please: + name: Prepare release + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + steps: + - name: Checkout code + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + fetch-depth: 0 + fetch-tags: true + + - name: Create GitHub App token + id: app-token + uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 + with: + app-id: ${{ secrets.SUMUP_BOT_APP_ID }} + private-key: ${{ secrets.SUMUP_BOT_PRIVATE_KEY }} + + - uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0 + with: + token: ${{ steps.app-token.outputs.token }} + target-branch: ${{ github.ref_name }} + skip-github-pull-request: "${{ startsWith(github.event.head_commit.message, 'release: ') }}" diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..f2ecd08 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.1.0" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..e17fe6d --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": false, + "draft": true, + "extra-label": "release", + "include-component-in-tag": false, + "include-v-in-tag": true, + "pull-request-header": "Automated sumup-cli release", + "pull-request-title-pattern": "release: ${version}", + "release-type": "go", + "versioning": "prerelease", + "packages": { + ".": {} + } +}