Skip to content
Permalink
Browse files

Update release.sh to allow releasing to TestPyPI without re-tag (#309)

  • Loading branch information...
parano committed Sep 25, 2019
1 parent ab75076 commit b218ee25e66c1172046027bd28c4459cdd84c810
Showing with 9 additions and 3 deletions.
  1. +9 −3 scripts/release.sh
@@ -36,7 +36,15 @@ if [ -d $GIT_ROOT/dist ]; then
fi

tag_name="v$VERSION_STR"
git tag -a $tag_name -m "Tag generated by BentoML/script/release.sh, version: $VERSION_STR"

if git rev-parse $tag_name >/dev/null 2>&1; then
echo "git tag '$tag_name' exist, using existing tag."
git checkout $tag_name
else
echo "Creatin git tag '$tag_name'"
git tag -a $tag_name -m "Tag generated by BentoML/script/release.sh, version: $VERSION_STR"
git push origin $tag_name
fi

echo "Installing dev dependencies..."
pip install .[dev]
@@ -50,5 +58,3 @@ REPO=${REPO:=testpypi}

echo "Uploading package to $REPO..."
twine upload --repository $REPO dist/* --verbose

git push origin $tag_name

0 comments on commit b218ee2

Please sign in to comment.
You can’t perform that action at this time.