kopia lustrzana https://github.com/bellingcat/auto-archiver
19 wiersze
492 B
Bash
19 wiersze
492 B
Bash
![]() |
|
||
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
TAG=$(python -c 'from src.auto_archiver.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
|