spaCy/bin/push-tag.sh

17 lines
324 B
Bash
Raw Normal View History

2018-07-21 13:10:54 +00:00
#!/usr/bin/env bash
set -e
# Insist repository is clean
git diff-index --quiet HEAD
git checkout master
git pull origin master
2018-10-14 21:16:08 +00:00
git push origin master
2018-07-21 13:10:54 +00:00
version=$(grep "__version__ = " spacy/about.py)
version=${version/__version__ = }
version=${version/\'/}
version=${version/\'/}
git tag "v$version"
git push origin --tags