Skip to content

Commit

Permalink
remove connector tar
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzl25 committed Oct 30, 2023
1 parent 6265942 commit 0cd12b2
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions ci/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ echo "--- Install aws cli"
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -q awscliv2.zip && ./aws/install && mv /usr/local/bin/aws /bin/aws

#echo "--- Check risingwave release version"
#if [[ -n "${BUILDKITE_TAG}" ]]; then
# CARGO_PKG_VERSION="$(toml get --toml-path Cargo.toml workspace.package.version)"
# if [[ "${CARGO_PKG_VERSION}" != "${BUILDKITE_TAG#*v}" ]]; then
# echo "CARGO_PKG_VERSION: ${CARGO_PKG_VERSION}"
# echo "BUILDKITE_TAG: ${BUILDKITE_TAG}"
# echo "CARGO_PKG_VERSION and BUILDKITE_TAG are not equal"
# exit 1
# fi
#fi
echo "--- Check risingwave release version"
if [[ -n "${BUILDKITE_TAG}" ]]; then
CARGO_PKG_VERSION="$(toml get --toml-path Cargo.toml workspace.package.version)"
if [[ "${CARGO_PKG_VERSION}" != "${BUILDKITE_TAG#*v}" ]]; then
echo "CARGO_PKG_VERSION: ${CARGO_PKG_VERSION}"
echo "BUILDKITE_TAG: ${BUILDKITE_TAG}"
echo "CARGO_PKG_VERSION and BUILDKITE_TAG are not equal"
exit 1
fi
fi

echo "--- Build risingwave release binary"
cargo build -p risingwave_cmd_all --features "rw-static-link" --profile release
Expand Down Expand Up @@ -96,9 +96,6 @@ if [[ -n "${BUILDKITE_TAG}" ]]; then
tar -czvf risectl-"${BUILDKITE_TAG}"-x86_64-unknown-linux.tar.gz risectl
gh release upload "${BUILDKITE_TAG}" risectl-"${BUILDKITE_TAG}"-x86_64-unknown-linux.tar.gz

echo "--- Release build and upload risingwave connector node jar asset"
gh release upload "${BUILDKITE_TAG}" risingwave-connector-"${BUILDKITE_TAG}".tar.gz

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

0 comments on commit 0cd12b2

Please sign in to comment.