Skip to content

Commit

Permalink
use UPLOAD_TO_PYPI flag as deploy condition
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Aug 15, 2023
1 parent c6d4258 commit 4f9e278
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ script:
- cd ..
- chmod +x .github/check-pypi-upload.sh
- GITHUB_OUTPUT=./pypi_upload .github/check-pypi-upload.sh
- export UPLOAD_TO_PYPI=`cat ./pypi_upload | sed -e 's/.*=\([01]\)/\1/g'`
- unlink $(which python)
- ln -s $(which python3) /usr/local/bin/python
- unlink $(which pip)
Expand All @@ -63,7 +64,9 @@ script:
deploy:
provider: pypi
username: "__token__"
distributions: "dist bdist_wheel"
distributions: "bdist_wheel"
skip_cleanup: true
password:
secure: cY74UjxKDiP3tTgQoYlAt06MlD8A1t2HPDDWqv+8UN9O0npoBZvyheXkaGRxd5Qx8CmapI12KfLCZl4wC3xEh9zUtPn20JwglKOYi6myOtnzn1QtUU9cNsP3IOFdZmDUNivaa02vyCONwg98d7nRUKaG9OoIJ7dN1zO26gT8G0cY5xnwmqw9ycwqQWb5waRFxS9Pel4QA3jm8gRC7FYezXWkvwLSCsMHPvf4ddYiMk5aTKmASAJ2gvieHzefuoswB+ujHUDt+UMwlr9iL9QgIwJtV6jO0z5aW7ruOSQa6ZvbN62Vtrd/ocY7ADx5MeOOb3S8hDsI7a1osJHGQKePzE22+dcBU92UOWfkEgefzdd2L26kyst3Qjlqh3eR4frPUTQUipeK/XIQ4o0sL4gMd4zXpXskyUXQr6Y0EsdRT5buDure2qiLBVA+3USTKCv8Gu2WJIwHwrNab0LThtAtKkgiwvebQBEbRYR2mkJicjZYJSsvEbL7aKounBxNv2lqOl+wul9sH5BEWcnBrbZ5h15BbNGJoTjmNQINTbkNSvsITHA2u3CT7aRL+WJ6XuoRSX8WNOn8+OLaOJoHSCpoDo6MR4Z+B4Q0IGvjdbOmzH3KVYopGjQb1YCu+a5m+QqRKO7SXAX6aJd9KLav9mLUIWVZCvFodvEhJwuW34RqeG8=
on:
condition: $UPLOAD_TO_PYPI = 1

0 comments on commit 4f9e278

Please sign in to comment.