-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (43 loc) · 1.48 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
name: Release
on:
workflow_dispatch:
inputs:
new-maven-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 variables
run: |
echo "RELEASE_VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
outputs:
release-version: ${{ env.RELEASE_VERSION }}
release:
needs: release-version
uses: ./.github/workflows/workflow-build-and-release-services.yml
with:
docker-release-version: ${{ needs.release-version.outputs.release-version }}
snapshot-release: false
maven-release: true
docker-release: true
secrets: inherit
github-release:
needs: release
uses: ./.github/workflows/workflow-github-release.yaml
with:
release-version: ${{ needs.release-version.outputs.release-version }}
secrets: inherit
bump-versions:
needs: github-release
uses: ./.github/workflows/workflow-bump-version.yaml
with:
new-maven-version: ${{ github.event.inputs.new-maven-version }}
secrets: inherit