blob: d1d3adbb6907db62f683eeb30f4e0c6adaba5962 [file] [log] [blame]
#!/bin/sh
set -e
location=$(dirname $0)
version=$($location/get_version.sh)
git branch -D staging-$version || true
git checkout -b staging-$version
git add * || true
git commit -m "Release $version"
git tag --force $version staging-$version
git push --force upstream $version
echo "Tag $version pushed upstream"