difftastic/scripts/release.sh

9 lines
164 B
Bash

#!/bin/bash
set -ex
cargo publish
VERSION=$(cargo metadata | jq -r '.packages | .[] | select(.name == "difftastic") | .version')
git tag $VERSION
git push --tags