-
Notifications
You must be signed in to change notification settings - Fork 3
72 lines (67 loc) · 2.63 KB
/
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
62
63
64
65
66
67
68
69
70
71
72
name: Release
on:
workflow_dispatch:
inputs:
release-tag:
description: 'Release Tag'
required: false
default: 'platform_XXX_connect_XXX'
release-connect:
description: 'Release miranum connect?'
type: boolean
required: true
default: false
connect-maven-new-version:
description: '(Optional) Specify new connect maven version - SNAPSHOT will be added to the version'
required: false
release-platform:
description: 'Release miranum platform?'
type: boolean
required: true
default: false
platform-maven-new-version:
description: '(Optional) Specify new platform maven version - SNAPSHOT will be added to the version'
required: false
jobs:
release-version:
runs-on: ubuntu-latest
steps:
- name: PREP / Check out Git repository
uses: actions/checkout@v4
- name: PREP / Prepare mvnw
run: chmod +x ./mvnw
- name: PREP / Remove snapshot from services
run: ./mvnw versions:set --batch-mode -DremoveSnapshot -DprocessAllModules
- name: PREP / Set services release version env variables
run: |
echo "CONNECT_RELEASE_VERSION=$(./mvnw -f connect help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
echo "PLATFORM_RELEASE_VERSION=$(./mvnw -f platform help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
outputs:
connect-release-version: ${{ env.CONNECT_RELEASE_VERSION }}
platform-release-version: ${{ env.PLATFORM_RELEASE_VERSION }}
release:
needs: release-version
uses: ./.github/workflows/workflow-build-and-release-services.yml
with:
docker-release-version: ${{ needs.release-version.outputs.platform-release-version }}
snapshot-release: false
maven-release: true
docker-release: true
release-connect: ${{ inputs.release-connect }}
release-platform: ${{ inputs.release-platform }}
secrets: inherit
github-release:
needs: release
uses: ./.github/workflows/workflow-github-release.yaml
with:
release-tag: ${{ github.event.inputs.release-tag }}
secrets: inherit
bump-versions:
needs: github-release
uses: ./.github/workflows/workflow-bump-version.yaml
with:
connect-bump-version: ${{ github.event.inputs.release-connect }}
connect-new-maven-version: ${{ github.event.inputs.connect-maven-new-version }}
platform-bump-version: ${{ github.event.inputs.release-platform }}
platform-new-maven-version: ${{ github.event.inputs.platform-maven-new-version }}
secrets: inherit