diff --git a/scripts/build_and_upload.sh b/scripts/build_and_upload.sh index 1df6aee..b3b6839 100755 --- a/scripts/build_and_upload.sh +++ b/scripts/build_and_upload.sh @@ -19,7 +19,7 @@ if [[ ! -f "pyproject.toml" ]]; then fi # Install twine if not already installed -if ! command -v twine &> /dev/null; then +if ! uv pip show twine &> /dev/null; then echo "Installing twine..." uv pip install twine fi @@ -62,7 +62,7 @@ if [[ ! -f "$HOME/.pypirc" ]]; then exit 1 fi -# Upload using twine -twine upload --repository gitea dist/* +# Upload using twine via uv +uv run twine upload --repository gitea dist/* echo "Package uploaded successfully to Gitea!"