Skip to content

Commit

Permalink
Add -prerelease flag if version is prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Jan 15, 2024
1 parent 460c935 commit d0db642
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,15 @@ jobs:
TAG="$CIRCLE_TAG"
TITLE="$TAG"
BODY="Build artifacts generated at this tag."
# Check if tag is a version without suffix (e.g. -rc or -beta) and
# set prerelease flag accordingly
[[ "$TAG" =~ ^v[0-9]+.[0-9]+.[0-9]+$ ]] || PRERELEASE=-prerelease
ghr -t "$GITHUB_TOKEN" \
-u "$CIRCLE_PROJECT_USERNAME" -r "$CIRCLE_PROJECT_REPONAME" \
-c "$CIRCLE_SHA1" \
-n "$TITLE" -b "$BODY" \
-delete \
$PRERELEASE \
"$TAG" ./artifacts/
workflows:
Expand Down

0 comments on commit d0db642

Please sign in to comment.