Skip to content

Commit

Permalink
fix bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJoin95 committed Apr 10, 2021
1 parent c7cf7a9 commit abd654e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions upload-release.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/sh -l

# if $TWINE_USERNAME == "" || $TWINE_PASSWORD == ""
# then
# echo "No twine username"
# return -1
# fi
if $TWINE_USERNAME == "" || $TWINE_PASSWORD == ""
then
echo "No twine info in the environment variables"
return -1
fi

# exec python setup.py sdist bdist_wheel
# echo "Build finished"
python setup.py sdist bdist_wheel
echo "Build finished"

# TODO: check if dist & build directory are existing and also with the correct files

echo "Twine init"
exec twine upload dist/*
twine upload dist/*
echo "Twine ended"

0 comments on commit abd654e

Please sign in to comment.