#!/bin/bashset-o errexitset-o nounsetset-o pipefailgit push# Extract version from pyproject.toml if it exists, otherwise fall back to setup.pyVERSION=$(toml2json Cargo.toml|jq .package.version -rc)# Tag the commit with the extracted versiongit tag "$VERSION"git push --tagscargo build# Upload to cratescargo publish