Skip to content

Commit

Permalink
fix(ci): fix ci create release (#15020)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjw806 authored Feb 26, 2024
1 parent 2cfe136 commit f4da2e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ci/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ if [[ -n "${BUILDKITE_TAG}" ]]; then
dnf install -y gh

echo "--- Release create"
set +e
response=$(gh api repos/risingwavelabs/risingwave/releases/tags/${BUILDKITE_TAG} 2>&1)
set -euo pipefail
if [[ $response == *"Not Found"* ]]; then
echo "Tag ${BUILDKITE_TAG} does not exist. Creating release..."
gh release create "${BUILDKITE_TAG}" --notes "release ${BUILDKITE_TAG}" -d -p
Expand All @@ -116,7 +118,7 @@ if [[ -n "${BUILDKITE_TAG}" ]]; then

echo "--- Release upload risingwave-all-in-one asset"
tar -czvf risingwave-"${BUILDKITE_TAG}"-${ARCH}-unknown-linux-all-in-one.tar.gz risingwave libs
gh release upload "${BUILDKITE_TAG}" risingwave-"${BUILDKITE_TAG}"-{ARCH}-unknown-linux-all-in-one.tar.gz
gh release upload "${BUILDKITE_TAG}" risingwave-"${BUILDKITE_TAG}"-${ARCH}-unknown-linux-all-in-one.tar.gz
fi


Expand Down

0 comments on commit f4da2e8

Please sign in to comment.