Skip to content

Commit

Permalink
chore: Remove not released packages while releasing (#3519)
Browse files Browse the repository at this point in the history
fix package

Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Nov 8, 2023
1 parent 64b61c7 commit 2c14c13
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 2c14c13

Please sign in to comment.