mirror of https://github.com/kivy/pyjnius.git
13 lines
405 B
Bash
Executable File
13 lines
405 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex
|
|
|
|
if [[ "refs/tags/$(git tag | tail -n 1)" = $GITHUB_REF ]]; then
|
|
pip install -U setuptools wheel twine
|
|
python -m twine check dist/*
|
|
if [[ $GITHUB_REF =~ -test$ ]]; then
|
|
python -m twine upload -u kivybot --disable-progress-bar --repository-url https://test.pypi.org/legacy/ dist/*
|
|
else
|
|
python -m twine upload -u kivybot --disable-progress-bar dist/*
|
|
fi
|
|
fi
|