-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (57 loc) · 1.82 KB
/
dispatch-maven-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: build maven release
on:
workflow_dispatch:
inputs:
release-version:
required: true
description: release version
development-version:
required: true
description: next development version
service:
required: true
description: service to build (backend, frontend, ...)
jobs:
prepare-release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Setup git user
uses: fregante/setup-git-user@v2
- name: Install Java and Maven
uses: actions/setup-java@v4
with:
java-version: 17
distribution: "temurin"
cache: 'maven'
cache-dependency-path: '${{ github.event.inputs.service }}/pom.xml'
- name: Perform maven release
run: >
mvn -B -ntp release:prepare -f backend/pom.xml
-DreleaseVersion=${{ github.event.inputs.release-version }}
-DdevelopmentVersion=${{ github.event.inputs.development-version }}
-Dtag=${{ github.event.inputs.service }}/v${{ github.event.inputs.release-version }}
-Darguments="-DskipTests"
build-gh-release:
permissions:
contents: write
needs:
- prepare-release
uses:
./.github/workflows/callable-create-release-from-tag.yml
with:
tag: ${{ github.event.inputs.service }}/v${{ github.event.inputs.release-version }}
service: ${{ github.event.inputs.service }}
build-ghcr-image:
permissions:
packages: write
needs:
- prepare-release
uses:
./.github/workflows/callable-create-ghcr-image-from-tag.yml
with:
tag: ${{ github.event.inputs.service }}/v${{ github.event.inputs.release-version }}
service: ${{ github.event.inputs.service }}