testing workflow without

This commit is contained in:
msramalho
2022-07-01 12:46:49 +02:00
parent 4b0b659adf
commit 6eb9007ece
4 changed files with 106 additions and 8 deletions

18
scripts/release.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -e
TAG=$(python -c 'from geocluster.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