#!/bin/bash -e vi Cargo.toml || true cargo generate-lockfile git commit --amend -v Cargo.toml Cargo.lock git tag v$(grep --max-count 1 "^version" Cargo.toml | grep -Eo "[0-9\.]+") git push --tags && git push