From b9fa9982bc2fb301c36a86c0f127342ae3b46906 Mon Sep 17 00:00:00 2001 From: Shunsuke Shibayama Date: Mon, 18 Sep 2023 02:01:33 +0900 Subject: [PATCH] Create publish.sh --- publish.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 publish.sh diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..f61a9ba --- /dev/null +++ b/publish.sh @@ -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/*