diff --git a/scripts/pypi-upload b/scripts/pypi-upload new file mode 100755 index 0000000..8e7b3bc --- /dev/null +++ b/scripts/pypi-upload @@ -0,0 +1,13 @@ +#!/bin/bash + +version=$(cat VERSION) +python3 -m pip install --upgrade pip +python3 -m pip install --upgrade build +python3 -m build + +if [ -f dist/janus_swi-${version}.tar.gz ]; then + twine upload dist/janus_swi-${version}.tar.gz +else + echo "ERROR: Failed to create dist/janus_swi-${version}.tar.gz" + exit 1 +fi