File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -649,8 +649,19 @@ jobs:
649
649
command : >
650
650
cd artifacts && sha1sum *.tar.gz > sha1sums.txt
651
651
- run :
652
+ name : Create GitHub Release
652
653
command : >
653
- gh release create $VERSION --notes-file /dev/null --title $VERSION artifacts/*
654
+ case "$VERSION" in
655
+
656
+ # If the VERSION contains a dash, consider it a pre-release version.
657
+ # This is in-line with SemVer's expectations/designations!
658
+ *-*) gh release create $VERSION --prerelease --notes-file /dev/null --title $VERSION artifacts/* ;;
659
+
660
+ # In all other cases, publish it as the latest version.
661
+ *) gh release create $VERSION --notes-file /dev/null --title $VERSION artifacts/* ;;
662
+
663
+ esac
664
+
654
665
- setup_remote_docker :
655
666
version : 20.10.11
656
667
docker_layer_caching : true
You can’t perform that action at this time.
0 commit comments