present 0.2.3

Interpolate the standard output of arbitrary shell scripts into your markdown files
Documentation
#!/usr/bin/env bash

set -euo pipefail

rm -rf tmp/release

git clone https://github.com/terror/present.git tmp/release

VERSION=$(sed -En 's/version[[:space:]]*=[[:space:]]*"([^"]+)"/\1/p' Cargo.toml | head -1)
echo "Releasing $VERSION..."
cd tmp/release

if git rev-parse "$VERSION" >/dev/null 2>&1; then
  echo "Tag $VERSION already exists. Skipping tag creation."
else
  git tag -a "$VERSION" -m "Release $VERSION"
  git push origin "$VERSION"
fi

cargo publish

cd ../..
rm -rf tmp/release