Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- #!/usr/bin/env bash
-
- function check_env_variables_are_setted {
- if [ -z "${TWINE_USERNAME}" ] || [ -z "${TWINE_PASSWORD}" ]; then
- echo "Need to set TWINE_USERNAME and TWINE_PASSWORD env variables to release cli"
- exit 1
- fi
- }
-
- set +o errexit
-
- check_env_variables_are_setted
-
- set -o errexit
- set -o pipefail
- set -o nounset
-
- function push_cli_on_pypi {
- pushd cli
- python -m pip install --upgrade pip
- pip install setuptools wheel twine
- python setup.py sdist bdist_wheel
- twine upload dist/*
- popd
- }
-
- push_cli_on_pypi
|