feat: auto-deploy to pypi (#8)

This commit is contained in:
Miguel Sozinho Ramalho
2022-07-01 15:23:50 +01:00
committed by GitHub
parent f55782d0da
commit f1053953ba
17 changed files with 2422 additions and 1075 deletions

18
scripts/release.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -e
TAG=$(python -c 'from geoclustering.version import VERSION; print("v" + VERSION)')
read -p "Creating new release for $TAG. Do you want to continue? [Y/n] " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
git add -A
git commit -m "Bump version to $TAG for release" || true && git push
echo "Creating new git tag $TAG"
git tag "$TAG" -m "$TAG"
git push --tags
else
echo "Cancelled"
exit 1
fi