From 1eda7b53e5143a3bee5a68a3f14f2a9163830aa0 Mon Sep 17 00:00:00 2001 From: Juan Munoz Date: Wed, 15 Nov 2023 23:01:57 +0100 Subject: [PATCH 1/3] ci: add release-please Signed-off-by: Juan Munoz --- ...release-project.yml => release-please.yml} | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) rename .github/workflows/{release-project.yml => release-please.yml} (76%) diff --git a/.github/workflows/release-project.yml b/.github/workflows/release-please.yml similarity index 76% rename from .github/workflows/release-project.yml rename to .github/workflows/release-please.yml index f280cfb..717b059 100644 --- a/.github/workflows/release-project.yml +++ b/.github/workflows/release-please.yml @@ -1,17 +1,35 @@ -# SPDX-FileCopyrightText: 2022 Alliander N.V. +# SPDX-FileCopyrightText: 2023 Alliander N.V. # # SPDX-License-Identifier: Apache-2.0 +on: + push: + branches: + - main -name: Release Project +permissions: + contents: write + pull-requests: write -on: - release: - types: [ released ] +name: release-please jobs: + release_please: + runs-on: ubuntu-latest + outputs: + release_created: ${{ steps.release.outputs.release_created }} + steps: + - uses: google-github-actions/release-please-action@v3 + id: release + with: + release-type: node + package-name: compas-cim-mapping + # The logic below handles the docker hub publication: push_to_registry: + needs: release_please + if: needs.release_please.outputs.release_created == "true" name: Build and publish runs-on: ubuntu-latest + timeout-minutes: 15 steps: - name: Checkout From d93aa9d600f4d23eaa3925843892b35a763dd39d Mon Sep 17 00:00:00 2001 From: Juan Munoz Date: Wed, 15 Nov 2023 23:43:06 +0100 Subject: [PATCH 2/3] chore: update package name Signed-off-by: Juan Munoz --- .github/workflows/release-please.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 717b059..96fc41d 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -22,7 +22,7 @@ jobs: id: release with: release-type: node - package-name: compas-cim-mapping + package-name: compas-scl-auto-alignment # The logic below handles the docker hub publication: push_to_registry: needs: release_please From 6a81af18e257bdc44961f49c8a4f498a533881c1 Mon Sep 17 00:00:00 2001 From: Juan Munoz Date: Mon, 20 Nov 2023 16:58:29 +0100 Subject: [PATCH 3/3] chore: update release-type to maven Co-authored-by: Pascal Wilbrink Signed-off-by: Juan Munoz --- .github/workflows/release-please.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 96fc41d..8c4987e 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -21,7 +21,7 @@ jobs: - uses: google-github-actions/release-please-action@v3 id: release with: - release-type: node + release-type: maven package-name: compas-scl-auto-alignment # The logic below handles the docker hub publication: push_to_registry: