Skip to content

Commit

Permalink
Add upload switches
Browse files Browse the repository at this point in the history
  • Loading branch information
bneijt committed Nov 23, 2019
1 parent 81e0ed6 commit f571e25
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
cd "$(dirname "$0")"
rm -rf dist
pipenv run -- python setup.py sdist bdist_wheel
pipenv run -- python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
case $1 in
prod)
pipenv run -- python -m twine upload
;;
test)
pipenv run -- python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
;;
*)
echo "Either prod or test"
exit 1
;;
esac

0 comments on commit f571e25

Please sign in to comment.