Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

deploy 532 B

12345678910111213141516171819202122232425
  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