mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
good build
This commit is contained in:
parent
b50c7c1200
commit
a36851620f
1 changed files with 18 additions and 18 deletions
|
@ -43,26 +43,26 @@ jobs:
|
|||
- run:
|
||||
name: PyPI publish
|
||||
command: |
|
||||
# if [ -n "$(git diff --name-only $CIRCLE_SHA1^..$CIRCLE_SHA1 | grep 'setup.py')" ]; then
|
||||
echo "setup.py modified"
|
||||
echo -e "[pypi]\nusername = __token__\npassword = $PYPI_API_TOKEN" > ~/.pypirc
|
||||
python -m pip install --upgrade pip
|
||||
pip install build
|
||||
pip install wheel
|
||||
pip install --upgrade twine setuptools
|
||||
rm -rf build dist
|
||||
if [ -n "$(git diff --name-only $CIRCLE_SHA1^..$CIRCLE_SHA1 | grep 'setup.py')" ]; then
|
||||
echo "setup.py modified"
|
||||
echo -e "[pypi]\nusername = __token__\npassword = $PYPI_API_TOKEN" > ~/.pypirc
|
||||
python -m pip install --upgrade pip
|
||||
pip install build
|
||||
pip install wheel
|
||||
pip install --upgrade twine setuptools
|
||||
rm -rf build dist
|
||||
|
||||
echo "Building package"
|
||||
python -m build
|
||||
echo "Building package"
|
||||
python -m build
|
||||
|
||||
echo "Twine upload to dist"
|
||||
echo "Contents of dist directory:"
|
||||
ls dist/
|
||||
twine upload --verbose dist/*
|
||||
# else
|
||||
# echo "No changes to setup.py. Skipping PyPI publish."
|
||||
# circleci step halt
|
||||
# fi
|
||||
echo "Twine upload to dist"
|
||||
echo "Contents of dist directory:"
|
||||
ls dist/
|
||||
twine upload --verbose dist/*
|
||||
else
|
||||
echo "No changes to setup.py. Skipping PyPI publish."
|
||||
circleci step halt
|
||||
fi
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue