From 9d2d2f93d96101a969c9d193b8b5d5533c759de2 Mon Sep 17 00:00:00 2001 From: Juan Munoz Date: Wed, 15 Nov 2023 22:47:51 +0100 Subject: [PATCH 1/3] ci: add release-please Signed-off-by: Juan Munoz --- ...release-project.yml => release-please.yml} | 34 ++++++++++++++----- 1 file changed, 25 insertions(+), 9 deletions(-) rename .github/workflows/{release-project.yml => release-please.yml} (73%) diff --git a/.github/workflows/release-project.yml b/.github/workflows/release-please.yml similarity index 73% rename from .github/workflows/release-project.yml rename to .github/workflows/release-please.yml index b3d380c..99bdd6e 100644 --- a/.github/workflows/release-project.yml +++ b/.github/workflows/release-please.yml @@ -1,18 +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_project: - name: Release project + 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: 30 + timeout-minutes: 15 steps: - name: Checkout @@ -35,7 +52,6 @@ jobs: shell: bash run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - name: Set up JDK 17 uses: actions/setup-java@v3 with: From 8a34df09c5ce782787d84d873efdb8d1673acbf1 Mon Sep 17 00:00:00 2001 From: Juan Munoz Date: Wed, 15 Nov 2023 23:43:39 +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 99bdd6e..cbbc6e9 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-sitipe-service # The logic below handles the docker hub publication: push_to_registry: needs: release_please From 6e2ac97cba127a520aa393ee9510e51c173c4e4b Mon Sep 17 00:00:00 2001 From: Juan Munoz Date: Mon, 20 Nov 2023 16:59:28 +0100 Subject: [PATCH 3/3] chore: update release-type to maven 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 cbbc6e9..afe0498 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-sitipe-service # The logic below handles the docker hub publication: push_to_registry: