File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -334,6 +334,14 @@ jobs:
334
334
- name : Download artifact
335
335
uses : actions/download-artifact@v2 # download all the artifacts
336
336
337
+ - name : Identify Prerelease
338
+ # This is a workaround while waiting for create-release action to implement auto pre-release based on tag
339
+ id : prerelease
340
+ run : |
341
+ wget -q -P /tmp https://github.com/fsaintjacques/semver-tool/archive/3.1.0.zip
342
+ unzip -p /tmp/3.1.0.zip semver-tool-3.1.0/src/semver >/tmp/semver && chmod +x /tmp/semver
343
+ if [[ $(/tmp/semver get prerel ${GITHUB_REF/refs\/tags\//}) ]]; then echo "::set-output name=IS_PRE::true"; fi
344
+
337
345
# mandatory step because upload-release-action does not support multiple folders
338
346
- name : prepare artifacts for the release
339
347
run : |
@@ -352,7 +360,7 @@ jobs:
352
360
release_name : ${{ github.ref }}
353
361
body : " THIS IS A TEST RELEASE"
354
362
draft : false
355
- prerelease : true # see later how to handle this (maybe just a check on "-dev" will be sufficient)
363
+ prerelease : ${{ steps.prerelease.outputs.IS_PRE }}
356
364
357
365
- name : Upload release files on Github
358
366
uses : svenstaro/upload-release-action@v2
You can’t perform that action at this time.
0 commit comments