tisonkun commented on code in PR #20981: URL: https://github.com/apache/pulsar/pull/20981#discussion_r1291511374
########## src/stage-release.sh: ########## @@ -26,13 +26,17 @@ if [ $# -eq 0 ]; then fi DEST_PATH=$1 +DEST_PATH="$(cd "$DEST_PATH" && pwd)" pushd $(dirname "$0") PULSAR_PATH=$(git rev-parse --show-toplevel) VERSION=`./get-project-version.py` popd -cp $PULSAR_PATH/target/apache-pulsar-$VERSION-src.tar.gz $DEST_PATH +pushd "$(dirname "$0")/.." +git archive --format=tar.gz --output="$DEST_PATH/apache-pulsar-$VERSION-src.tar.gz" --prefix="apache-pulsar-$VERSION-src/" HEAD Review Comment: > HEAD Perhaps use "v$VERSION", but I use `HEAD` for testing and as long as the release tag is stable and we release on the tag, it doesn't cause any difference. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
