blob: 3e5fc515448ecef7976616b0bdbeae4d3e6a622d [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 -a -m "Release $version"
git tag --force $version staging-$version
git push --force upstream $version
echo "Tag $version pushed upstream"