38
38
echo "::set-output name=version::$VERSION"
39
39
echo "SPP_CLI_VERSION=$VERSION" >> $GITHUB_ENV
40
40
echo "SPP_RELEASE_VERSION=${VERSION/-SNAPSHOT/}" >> $GITHUB_ENV
41
+ SPP_RELEASE_VERSION=${VERSION/-SNAPSHOT/}
42
+ echo "::set-output name=release_version::$SPP_RELEASE_VERSION"
41
43
42
44
- name : Build native spp-cli (Release)
43
45
if : github.ref == 'refs/heads/master'
89
91
echo "::set-output name=version::$VERSION"
90
92
echo "SPP_CLI_VERSION=$VERSION" >> $GITHUB_ENV
91
93
echo "SPP_RELEASE_VERSION=${VERSION/-SNAPSHOT/}" >> $GITHUB_ENV
94
+ SPP_RELEASE_VERSION=${VERSION/-SNAPSHOT/}
95
+ echo "::set-output name=release_version::$SPP_RELEASE_VERSION"
92
96
93
97
- name : Build native spp-cli.exe (Release)
94
98
if : github.ref == 'refs/heads/master'
@@ -129,6 +133,7 @@ jobs:
129
133
130
134
outputs :
131
135
version : ${{ steps.properties.outputs.version }}
136
+ release_version : ${{ steps.properties.outputs.release_version }}
132
137
steps :
133
138
- uses : actions/checkout@v2
134
139
- uses : ayltai/setup-graalvm@v1
@@ -146,6 +151,8 @@ jobs:
146
151
echo "::set-output name=version::$VERSION"
147
152
echo "SPP_CLI_VERSION=$VERSION" >> $GITHUB_ENV
148
153
echo "SPP_RELEASE_VERSION=${VERSION/-SNAPSHOT/}" >> $GITHUB_ENV
154
+ SPP_RELEASE_VERSION=${VERSION/-SNAPSHOT/}
155
+ echo "::set-output name=release_version::$SPP_RELEASE_VERSION"
149
156
150
157
- name : Build native spp-cli (Release)
151
158
if : github.ref == 'refs/heads/master'
@@ -257,8 +264,8 @@ jobs:
257
264
env :
258
265
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
259
266
with :
260
- tag_name : ${{ needs.buildOnLinux.outputs.version }}
261
- release_name : v${{ needs.buildOnLinux.outputs.version }}
267
+ tag_name : ${{ needs.buildOnLinux.outputs.release_version }}
268
+ release_name : v${{ needs.buildOnLinux.outputs.release_version }}
262
269
body : ${{ needs.build.outputs.changelog }}
263
270
draft : true
264
271
@@ -274,7 +281,7 @@ jobs:
274
281
with :
275
282
upload_url : ${{ steps.createDraft.outputs.upload_url }}
276
283
asset_path : ./spp-cli-macOS.zip
277
- asset_name : spp-cli-${{ needs.buildOnLinux.outputs.version }}-macOS.zip
284
+ asset_name : spp-cli-${{ needs.buildOnLinux.outputs.release_version }}-macOS.zip
278
285
asset_content_type : application/zip
279
286
280
287
- name : Download spp-cli-win64 artifact
@@ -289,7 +296,7 @@ jobs:
289
296
with :
290
297
upload_url : ${{ steps.createDraft.outputs.upload_url }}
291
298
asset_path : ./spp-cli-win64.zip
292
- asset_name : spp-cli-${{ needs.buildOnLinux.outputs.version }}-win64.zip
299
+ asset_name : spp-cli-${{ needs.buildOnLinux.outputs.release_version }}-win64.zip
293
300
asset_content_type : application/zip
294
301
295
302
- name : Download spp-cli-linux64 artifact
@@ -304,5 +311,5 @@ jobs:
304
311
with :
305
312
upload_url : ${{ steps.createDraft.outputs.upload_url }}
306
313
asset_path : ./spp-cli-linux64.zip
307
- asset_name : spp-cli-${{ needs.buildOnLinux.outputs.version }}-linux64.zip
314
+ asset_name : spp-cli-${{ needs.buildOnLinux.outputs.release_version }}-linux64.zip
308
315
asset_content_type : application/zip
0 commit comments