2023-02-07 22:07:23 +00:00
|
|
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2023-02-08 09:49:48 +00:00
|
|
|
TAG=$(python -c 'from src.auto_archiver.version import __version__; print("v" + __version__)')
|
2023-02-07 22:07:23 +00:00
|
|
|
|
|
|
|
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
|