From abd9022db5147749f94fc81518d319aec4893bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20G=C3=A4chter?= <lukas.gaechter@mind.ch> Date: Mon, 9 Sep 2024 17:21:02 +0200 Subject: [PATCH] ci: Add release please (#46) --- .github/workflows/release.yml | 21 +++++++++++++++++++++ .release-please-manifest.json | 3 +++ release-please-config.json | 12 ++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..95a917a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: Release + +on: + push: + branches: + - 1.x + +permissions: + contents: write + pull-requests: write + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + with: + target-branch: ${{ github.ref_name }} + config-file: release-please-config.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..8d7e5f1 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "1.0.1" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..adeb8fa --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "release-type": "php", + "prerelease": false, + "draft": true, + "pull-request-header": "Release-please has created a release", + "packages": { + ".": { + "changelog-path": "CHANGELOG.md" + } + } +}