-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (46 loc) · 1.61 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
name: Release
on:
workflow_dispatch:
inputs:
release-tag:
description: 'Release Tag'
required: false
default: 'services_XXX_apps_XXX'
maven-new-version:
description: '(Optional) Specify new 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 variable
run: echo "SERVICES_RELEASE_VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
outputs:
services-release-version: ${{ env.SERVICES_RELEASE_VERSION }}
release-services:
needs: release-version
uses: ./.github/workflows/workflow-build-and-release-services.yml
with:
release-version: ${{ needs.release-version.outputs.services-release-version }}
snapshot-release: false
maven-release: true
docker-release: true
secrets: inherit
github-release:
needs: release-services
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:
new-maven-version: ${{ github.event.inputs.maven-new-version }}
secrets: inherit