Skip to content

Commit

Permalink
ci: add release please
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Munoz <[email protected]>
  • Loading branch information
juancho0202 committed Nov 15, 2023
1 parent 3ca6700 commit 40a51d1
Showing 1 changed file with 25 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 40a51d1

Please sign in to comment.