Files
pdfmajor/bin/deploy_pip.sh
T

24 lines
455 B
Bash
Executable File

#!/bin/bash
# Get working dir (this will make sure that the script will work the same anywhere you run it)
WK_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $WK_DIR
cd ..
./bin/clean.sh
if ./bin/run_tests.sh; then
python setup.py sdist bdist_wheel
git add .
git commit
git push
git tag $(cat .version)
git push -u origin $(cat .version)
twine upload dist/*
else
echo ">>> Stopped due to test failure!"
fi