Skip to content

Commit

Permalink
Merge pull request #34 from com-pas/33-setup-release-please
Browse files Browse the repository at this point in the history
ci: add release-please
  • Loading branch information
juancho0202 authored Nov 28, 2023
2 parents 14f7b2f + 6e2ac97 commit b2e2db0
Showing 1 changed file with 25 additions and 9 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: maven
package-name: compas-sitipe-service
# 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 All @@ -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:
Expand Down

0 comments on commit b2e2db0

Please sign in to comment.