forked from phoenix/litellm-mirror
Update config.yml
This commit is contained in:
parent
110dfaf577
commit
fec574c1fd
1 changed files with 20 additions and 20 deletions
|
@ -39,7 +39,7 @@ jobs:
|
|||
- run:
|
||||
name: PyPI publish
|
||||
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 -e "[pypi]\nusername = __token__\npassword = $PYPI_API_TOKEN" > ~/.pypirc
|
||||
python -m pip install --upgrade pip
|
||||
|
@ -53,10 +53,10 @@ jobs:
|
|||
echo "$TWINE_PASSWORD"
|
||||
echo "$PYPI_API_TOKEN"
|
||||
twine upload --verbose dist/*
|
||||
# else
|
||||
# echo "No changes to setup.py. Skipping PyPI publish."
|
||||
# circleci step halt
|
||||
# fi
|
||||
else
|
||||
echo "No changes to setup.py. Skipping PyPI publish."
|
||||
circleci step halt
|
||||
fi
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
|
@ -65,8 +65,8 @@ workflows:
|
|||
- local_testing
|
||||
|
||||
- publish_to_pypi:
|
||||
# requires:
|
||||
# - local_testing
|
||||
requires:
|
||||
- local_testing
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue