[BUILD] Fix dev/release script
@@ -53,10 +53,6 @@ echo "Build YataiServer node server and web UI..."
cd $GIT_ROOT/bentoml/yatai/web
yarn build
-echo "Generating PyPI source distribution..."
-cd $GIT_ROOT
-python3 setup.py sdist bdist_wheel
-
if git rev-parse $tag_name >/dev/null 2>&1; then
echo "git tag '$tag_name' exist, using existing tag."
echo "To redo releasing and overwrite existing tag, delete tag with the following and re-run release.sh:"
@@ -68,6 +64,10 @@ else
git push origin $tag_name
fi
+echo "Generating PyPI source distribution..."
+cd $GIT_ROOT
+python3 setup.py sdist bdist_wheel
+
# Use testpypi by default, run script with: "REPO=pypi release.sh" for
# releasing to Pypi.org
REPO=${REPO:=testpypi}
