@@ -58,35 +58,37 @@ jobs:
58
58
if : ${{ runner.os != 'Windows' }}
59
59
run : chmod +x ./gradlew
60
60
61
- - name : extract version
62
- if : ${{ runner.os != 'Windows' }}
63
- id : getversion
64
- run : |
65
- echo "version=$(.github/scripts/extract_version.sh)" >> "$GITHUB_OUTPUT"
66
-
67
61
- name : gradle clean build
68
- env :
69
- VERSION_NAME : ${{ steps.getversion.outputs.version }}
70
62
run : ./gradlew clean build
71
63
72
64
- name : extract changelog
73
65
if : ${{ runner.os == 'Linux' && matrix.java == '17' && github.event.inputs.publish }} # only publish from one OS with latest Java
74
- id : getchangelog
75
- env :
76
- VERSION_NAME : ${{ steps.getversion.outputs.version }}
66
+ id : changelog
77
67
run : |
78
68
echo "changelog=$(./gradlew -q printChangelog)" >> "$GITHUB_OUTPUT"
79
69
70
+ - name : extract version number
71
+ if : ${{ runner.os == 'Linux' && matrix.java == '17' && github.event.inputs.publish }} # only publish from one OS with latest Java
72
+ id : version
73
+ run : |
74
+ echo "version=$(./gradlew -q printVersion)" >> "$GITHUB_OUTPUT"
75
+
76
+ - name : extract version display name
77
+ if : ${{ runner.os == 'Linux' && matrix.java == '17' && github.event.inputs.publish }} # only publish from one OS with latest Java
78
+ id : versionDisplay
79
+ run : |
80
+ echo "versionDisplay=$(./gradlew -q printVersionDisplay)" >> "$GITHUB_OUTPUT"
81
+
80
82
# windows throws an error if the second parameter for
81
83
# echo is not set, which it will never be, because it's
82
84
# only set for Linux
83
85
- name : show version
84
86
if : ${{ runner.os == 'Linux' && matrix.java == '17' && github.event.inputs.publish }} # only publish from one OS with latest Java
85
- run : echo ${{ steps.getversion .outputs.version }}
87
+ run : echo ${{ steps.version .outputs.version }}
86
88
87
89
- name : show changelog
88
90
if : ${{ runner.os == 'Linux' && matrix.java == '17' && github.event.inputs.publish }} # only publish from one OS with latest Java
89
- run : echo "${{ steps.getchangelog .outputs.changelog }}"
91
+ run : echo "${{ steps.changelog .outputs.changelog }}"
90
92
continue-on-error : true
91
93
92
94
- name : capture build artifacts
@@ -107,5 +109,6 @@ jobs:
107
109
uses : ncipollo/release-action@v1
108
110
with :
109
111
artifacts : " LICENSE,build/libs/*.jar"
110
- body : ${{ steps.getchangelog.outputs.changelog }}
111
- tag : ${{ steps.getversion.outputs.version }}
112
+ body : ${{ steps.changelog.outputs.changelog }}
113
+ tag : ${{ steps.version.outputs.version }}
114
+ name : ${{ steps.versionDisplay.outputs.versionDisplay }}
0 commit comments