Files
vk-url-scraper/scripts/release.sh
msramalho c4a1333428 cleanup
2022-06-20 13:44:05 +02:00

19 lines
489 B
Bash
Executable File

#!/bin/bash
set -e
TAG=$(python -c 'from vk_url_scraper.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