File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 9090
9191 - name : Create GitHub release
9292 run : |
93+ # Check if this is a release candidate
94+ PRERELEASE_FLAG=""
95+ if echo "$VERSION_NUM" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$'; then
96+ PRERELEASE_FLAG="--prerelease"
97+ echo "Detected release candidate version, will mark as prerelease"
98+ fi
99+
93100 # Check if release already exists. Needed when release created via new release in guthub ui
94101 if gh release view "$VERSION_NUM" > /dev/null 2>&1; then
95102 echo "Release for tag $VERSION_NUM already exists, uploading additional assets..."
98105 echo "Creating new release for tag $VERSION_NUM..."
99106 gh release create "$VERSION_NUM" ./*.tar.gz \
100107 --title "Release $VERSION_NUM" \
101- --notes "Release $VERSION_NUM"
108+ --notes "Release $VERSION_NUM" \
109+ $PRERELEASE_FLAG
102110 fi
103111 handle-failures :
104112 name : Handle Failures
You can’t perform that action at this time.
0 commit comments