[U] Update deploy script

This commit is contained in:
Azalea 2024-05-16 21:50:22 +08:00
parent bfeca1535b
commit 9a867c6819

View file

@ -3,15 +3,12 @@
# Stop on error # Stop on error
set -e set -e
# Remove old build # Get script directory
rm -rf dist/* DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
rm -rf build/*
# Build # Run build_pkg
python setup.py sdist bdist_wheel "$DIR/build_pkg.sh"
# Check built files # Check built files
twine check dist/* twine check dist/*
# Upload
twine upload dist/* twine upload dist/*