File tree Expand file tree Collapse file tree 1 file changed +25
-9
lines changed Expand file tree Collapse file tree 1 file changed +25
-9
lines changed Original file line number Diff line number Diff line change 1
- # SPDX-FileCopyrightText: 2022 Alliander N.V.
1
+ # SPDX-FileCopyrightText: 2023 Alliander N.V.
2
2
#
3
3
# SPDX-License-Identifier: Apache-2.0
4
+ on :
5
+ push :
6
+ branches :
7
+ - main
4
8
5
- name : Release Project
9
+ permissions :
10
+ contents : write
11
+ pull-requests : write
6
12
7
- on :
8
- release :
9
- types : [ released ]
13
+ name : release-please
10
14
11
15
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
14
31
runs-on : ubuntu-latest
15
- timeout-minutes : 30
32
+ timeout-minutes : 15
16
33
17
34
steps :
18
35
- name : Checkout
35
52
shell : bash
36
53
run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
37
54
38
-
39
55
- name : Set up JDK 17
40
56
uses : actions/setup-java@v3
41
57
with :
You can’t perform that action at this time.
0 commit comments