Skip to content

Commit b2e2db0

Browse files
authored
Merge pull request #34 from com-pas/33-setup-release-please
ci: add release-please
2 parents 14f7b2f + 6e2ac97 commit b2e2db0

File tree

1 file changed

+25
-9
lines changed

1 file changed

+25
-9
lines changed

.github/workflows/release-project.yml renamed to .github/workflows/release-please.yml

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,35 @@
1-
# SPDX-FileCopyrightText: 2022 Alliander N.V.
1+
# SPDX-FileCopyrightText: 2023 Alliander N.V.
22
#
33
# SPDX-License-Identifier: Apache-2.0
4+
on:
5+
push:
6+
branches:
7+
- main
48

5-
name: Release Project
9+
permissions:
10+
contents: write
11+
pull-requests: write
612

7-
on:
8-
release:
9-
types: [ released ]
13+
name: release-please
1014

1115
jobs:
12-
release_project:
13-
name: Release project
16+
release_please:
17+
runs-on: ubuntu-latest
18+
outputs:
19+
release_created: ${{ steps.release.outputs.release_created }}
20+
steps:
21+
- uses: google-github-actions/release-please-action@v3
22+
id: release
23+
with:
24+
release-type: maven
25+
package-name: compas-sitipe-service
26+
# The logic below handles the docker hub publication:
27+
push_to_registry:
28+
needs: release_please
29+
if: needs.release_please.outputs.release_created == "true"
30+
name: Build and publish
1431
runs-on: ubuntu-latest
15-
timeout-minutes: 30
32+
timeout-minutes: 15
1633

1734
steps:
1835
- name: Checkout
@@ -35,7 +52,6 @@ jobs:
3552
shell: bash
3653
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
3754

38-
3955
- name: Set up JDK 17
4056
uses: actions/setup-java@v3
4157
with:

0 commit comments

Comments
 (0)