Skip to content

Commit 1128a47

Browse files
authored
Merge pull request #255 from com-pas/253-setup-release-please
ci: add release-please
2 parents 4418402 + ebbb1f8 commit 1128a47

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

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

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +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:
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-scl-auto-alignment
26+
# The logic below handles the docker hub publication:
1227
push_to_registry:
28+
needs: release_please
29+
if: needs.release_please.outputs.release_created == "true"
1330
name: Build and publish
1431
runs-on: ubuntu-latest
32+
timeout-minutes: 15
1533

1634
steps:
1735
- name: Checkout

0 commit comments

Comments
 (0)