diff --git a/Makefile b/Makefile index 167cdaf..d16ffbc 100644 --- a/Makefile +++ b/Makefile @@ -2,3 +2,5 @@ render-diagrams: @(scripts/render-diagrams.sh '' 'design/v1' 'design/v1/assets') @(scripts/render-diagrams.sh '' 'design/v2' 'design/v2/assets') @(echo "\n"'⚠️ Adobe XD diagrams are not exported automatically.'"\n"' Open `*.xd` files and batch export diagrams in SVG format in <./assets/>.') +release: + @(scripts/release.sh) diff --git a/scripts/release.sh b/scripts/release.sh new file mode 100755 index 0000000..4ddd394 --- /dev/null +++ b/scripts/release.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +SRC=src/orangutan + +VERSION="$(sed -n 's/version = "\(0.1.0\)"/\1/p' "$SRC"/Cargo.toml)" +TAG="v${VERSION:?}" + +echo "Creating tag '${TAG}'…" +git tag -s "${TAG}" -m "Release ${VERSION}" +echo "Pushing tag '${TAG}'…" +git push origin "${TAG}"