您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

25 行
531 B

  1. #!/usr/bin/env bash
  2. function check_env_variables_are_setted {
  3. if [ -z "${TWINE_USERNAME}" ] || [ -z "${TWINE_PASSWORD}" ]; then
  4. echo "Need to set TWINE_USERNAME and TWINE_PASSWORD env variables to release cli"
  5. exit 1
  6. fi
  7. }
  8. set +o errexit
  9. check_env_variables_are_setted
  10. set -o errexit
  11. set -o pipefail
  12. set -o nounset
  13. function push_cli_on_pypi {
  14. python -m pip install --upgrade pip
  15. pip install setuptools wheel twine
  16. python setup.py sdist bdist_wheel
  17. twine upload dist/*
  18. }
  19. push_cli_on_pypi