Create publish.sh

This commit is contained in:
Shunsuke Shibayama 2023-09-18 02:01:33 +09:00
parent bb9274ed8f
commit b9fa9982bc

11
publish.sh Executable file
View file

@ -0,0 +1,11 @@
os=$(uname -s)
if [ "$os" = "Darwin" ]; then
platform="macos"
elif [ "$os" = "Linux" ]; then
platform="linux"
else
echo "Unsupported platform: $os"
exit 1
fi
cibuildwheel --output-dir dist --platform $platform
twine upload -u mtshiba -p $PYPI_PASSWORD --skip-existing dist/*