#!/bin/bash set -e echo "๐Ÿš€ Deploying assistant-ui-sync-server-api to PyPI" # Clean previous builds echo "๐Ÿงน Cleaning previous builds..." rm -rf dist/ build/ *.egg-info src/*.egg-info # Build the package echo "๐Ÿ“ฆ Building package..." python -m pip install --upgrade build twine python -m build # Check the package echo "๐Ÿ” Checking package..." twine check dist/* # Upload to PyPI echo "๐Ÿ“ค Uploading to PyPI..." echo "Note: You'll need to authenticate with your PyPI credentials" twine upload dist/* echo "โœ… Deployment complete!"