forked from phoenix/litellm-mirror
Update config.yml
This commit is contained in:
parent
a3d2a2fb9d
commit
4d90f8e726
1 changed files with 19 additions and 22 deletions
|
@ -39,26 +39,23 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: PyPI publish
|
name: PyPI publish
|
||||||
command: |
|
command: |
|
||||||
if [ -n "$(git diff --name-only $CIRCLE_SHA1^..$CIRCLE_SHA1 | grep 'setup.py')" ]; then
|
# if [ -n "$(git diff --name-only $CIRCLE_SHA1^..$CIRCLE_SHA1 | grep 'setup.py')" ]; then
|
||||||
echo "setup.py modified"
|
echo "setup.py modified"
|
||||||
echo -e "[pypi]\nusername = __token__\npassword = $PYPI_API_TOKEN" > ~/.pypirc
|
echo -e "[pypi]\nusername = __token__\npassword = $PYPI_API_TOKEN" > ~/.pypirc
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install twine
|
pip install twine
|
||||||
pip install wheel
|
pip install wheel
|
||||||
pip install --upgrade setuptools
|
pip install --upgrade setuptools
|
||||||
echo "Building package"
|
echo "Building package"
|
||||||
python setup.py sdist bdist_wheel
|
python setup.py sdist bdist_wheel
|
||||||
echo "Twine upload to dist"
|
echo "Twine upload to dist"
|
||||||
echo "$TWINE_USERNAME"
|
echo "Contents of dist directory:"
|
||||||
echo "$TWINE_PASSWORD"
|
ls dist/
|
||||||
echo "$PYPI_API_TOKEN"
|
twine upload --verbose dist/*
|
||||||
echo "Contents of dist directory:"
|
# else
|
||||||
ls dist/
|
# echo "No changes to setup.py. Skipping PyPI publish."
|
||||||
twine upload --verbose dist/*
|
# circleci step halt
|
||||||
else
|
# fi
|
||||||
echo "No changes to setup.py. Skipping PyPI publish."
|
|
||||||
circleci step halt
|
|
||||||
fi
|
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
@ -67,8 +64,8 @@ workflows:
|
||||||
- local_testing
|
- local_testing
|
||||||
|
|
||||||
- publish_to_pypi:
|
- publish_to_pypi:
|
||||||
requires:
|
# requires:
|
||||||
- local_testing
|
# - local_testing
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue