Skip to content

Commit

Permalink
Merge pull request #496 from CosmWasm/prerelease-tagging
Browse files Browse the repository at this point in the history
Add `-prerelease` flag if version is not in `v{NUMBER}.{NUMBER}.{NUMBER}` format
  • Loading branch information
chipshort authored Jan 15, 2024
2 parents 460c935 + d0db642 commit 6add80a
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 6add80a

Please sign in to comment.