This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 2c14c132b chore: Remove not released packages while releasing (#3519)
2c14c132b is described below
commit 2c14c132b6688fc3409594aaebc91cd413776e19
Author: Xuanwo <[email protected]>
AuthorDate: Wed Nov 8 14:10:27 2023 +0800
chore: Remove not released packages while releasing (#3519)
fix package
Signed-off-by: Xuanwo <[email protected]>
---
scripts/release.sh | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/scripts/release.sh b/scripts/release.sh
index 50eebd04a..4090cc7e1 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -38,6 +38,24 @@ mkdir -p dist/
echo "> Checkout version branch"
git checkout -B "${git_branch}"
+# Please update this part while package list changed.
+echo "> Update Cargo.toml to remove not released members"
+PACKAGES=(
+ "bindings\/c"
+ "bindings\/ruby"
+ "bindings\/haskell"
+ "bindings\/lua"
+ "bindings\/dotnet"
+ "bindings\/ocaml"
+ "bindings\/php"
+ "bindings\/cpp"
+ "bin\/"
+ "integrations\/"
+)
+for package in "${PACKAGES[@]}"; do
+ sed -i "/${package}/d" Cargo.toml
+done
+
echo "> Start package"
git archive --format=tar.gz
--output="dist/apache-opendal-incubating-$release_version-src.tar.gz"
--prefix="apache-opendal-incubating-$release_version-src/" "$git_branch"