Hasan Iqbal commited on
Commit
a4eeeee
1 Parent(s): 8f03820

Prerelease only for rc

Browse files
Files changed (1) hide show
  1. scripts/release.sh +7 -2
scripts/release.sh CHANGED
@@ -129,8 +129,13 @@ git push origin $BRANCH
129
  git push origin $VERSION
130
 
131
  # Regex to match development or release candidate versions
132
- if [[ "$VERSION" =~ -dev[0-9]+$ || "$VERSION" =~ -rc[0-9]+$ ]]; then
133
- # It's a pre-release because it contains `dev` or `rc`
 
 
 
 
 
134
  gh release create "$VERSION" --generate-notes --prerelease
135
  echo "Pre-release $VERSION created."
136
  else
 
129
  git push origin $VERSION
130
 
131
  # Regex to match development or release candidate versions
132
+ if [[ "$VERSION" =~ -dev[0-9]+$ ]]; then
133
+ # It's a development release because it contains `dev`
134
+ c_echo $YELLOW "Skipping release to GitHub for development release"
135
+ exit 0
136
+ fi
137
+ if [[ "$VERSION" =~ -rc[0-9]+$ ]]; then
138
+ # It's a pre-release because it contains `rc`
139
  gh release create "$VERSION" --generate-notes --prerelease
140
  echo "Pre-release $VERSION created."
141
  else