Skip to content

Commit

Permalink
🔨 Add make release
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiBardon committed Jan 1, 2024
1 parent a4fad76 commit 0a89de2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
11 changes: 11 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -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}"

0 comments on commit 0a89de2

Please sign in to comment.