From 453b8dd9607b1d34b4e168cc7d42d709a188a34e Mon Sep 17 00:00:00 2001 From: Tommaso Bailetti Date: Mon, 13 May 2024 12:59:12 +0200 Subject: [PATCH] ci: adding release-please Release-as: 0.1.0 --- .github/workflows/release-please.yml | 21 +++++++++++++++++++++ composer.json | 1 - composer.lock | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..3a0bc0f --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,21 @@ +name: Release Please + +on: + pull_request: + types: + - closed + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + release-please: + runs-on: ubuntu-latest + if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release-please')) + steps: + - uses: actions/checkout@v4 + - uses: google-github-actions/release-please-action@v4 + with: + release-type: php diff --git a/composer.json b/composer.json index 7c34396..7d55704 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,6 @@ "nethsecurity", "repo" ], - "version": "0.0.1", "license": "AGPL-3.0-or-later", "require": { "php": "^8.2", diff --git a/composer.lock b/composer.lock index 1befeaa..d25dbde 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "00048e302ce0c415be4e250f3e14f62d", + "content-hash": "1e9e5ecd0ef53b350eddb738ed379a3e", "packages": [ { "name": "aws/aws-crt-php",