Skip to content

Commit

Permalink
chore: update release scripts and readme (#8244)
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Fu <[email protected]>
  • Loading branch information
huangjw806 and fuyufjh authored Mar 1, 2023
1 parent 88c312f commit 0e61c07
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ There are two ways to install RisingWave: use a pre-built package or compile fro

```shell
# Download the pre-built binary
wget https://github.com/risingwavelabs/risingwave/releases/download/v0.1.16/risingwave-v0.1.16-x86_64-unknown-linux.tar.gz
wget https://github.com/risingwavelabs/risingwave/releases/download/v0.1.17/risingwave-v0.1.17-x86_64-unknown-linux.tar.gz
# Unzip the binary
tar xvf risingwave-v0.1.16-x86_64-unknown-linux.tar.gz
tar xvf risingwave-v0.1.17-x86_64-unknown-linux.tar.gz
# Start RisingWave in single-binary playground mode
./risingwave playground
```
Expand All @@ -37,7 +37,7 @@ tar xvf risingwave-v0.1.16-x86_64-unknown-linux.tar.gz

```shell
# Start RisingWave in single-binary playground mode
docker run -it --pull=always -p 4566:4566 -p 5691:5691 ghcr.io/risingwavelabs/risingwave:v0.1.16 playground
docker run -it --pull=always -p 4566:4566 -p 5691:5691 ghcr.io/risingwavelabs/risingwave:v0.1.17 playground
```

**Compile from Source with [RiseDev](docs/developer-guide.md#set-up-the-development-environment) (Linux and macOS)**
Expand Down
2 changes: 1 addition & 1 deletion ci/connector-node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.1.16
v0.1.17
17 changes: 11 additions & 6 deletions ci/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ unzip -q awscliv2.zip && ./aws/install && mv /usr/local/bin/aws /bin/aws

echo "--- Build risingwave release binary"
cargo build -p risingwave_cmd_all --features "static-link static-log-level" --profile release
cd target/release && chmod +x risingwave
cargo build --bin risectl --features "static-link static-log-level" --profile release
cd target/release && chmod +x risingwave risectl

echo "--- Upload nightly binary to s3"
if [ "${BUILDKITE_SOURCE}" == "schedule" ]; then
Expand All @@ -53,15 +54,19 @@ if [[ -n "${BUILDKITE_TAG+x}" ]]; then
echo "--- Release create"
gh release create "${BUILDKITE_TAG}" --notes "release ${BUILDKITE_TAG}" -d -p

echo "--- Release upload asset"
echo "--- Release upload risingwave asset"
tar -czvf risingwave-"${BUILDKITE_TAG}"-x86_64-unknown-linux.tar.gz risingwave
gh release upload "${BUILDKITE_TAG}" risingwave-"${BUILDKITE_TAG}"-x86_64-unknown-linux.tar.gz

echo "--- Release upload risectl asset"
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"
git clone https://"$GITHUB_TOKEN"@github.com/risingwavelabs/risingwave-connector-node.git
cd risingwave-connector-node && git checkout ${connector_node_version} && mvn -B package -Dmaven.test.skip=true
cd assembly/target && mv risingwave-connector-1.0.0.tar.gz risingwave-connector-"${BUILDKITE_TAG}".tar.gz
gh release upload "${BUILDKITE_TAG}" risingwave-connector-"${BUILDKITE_TAG}".tar.gz
# git clone https://"$GITHUB_TOKEN"@github.com/risingwavelabs/risingwave-connector-node.git
# cd risingwave-connector-node && git checkout ${connector_node_version} && mvn -B package -Dmaven.test.skip=true
# cd assembly/target && mv risingwave-connector-1.0.0.tar.gz risingwave-connector-"${BUILDKITE_TAG}".tar.gz
# gh release upload "${BUILDKITE_TAG}" risingwave-connector-"${BUILDKITE_TAG}".tar.gz
fi


Expand Down

0 comments on commit 0e61c07

Please sign in to comment.