Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
terror committed Oct 1, 2024
1 parent d44a0f9 commit f750d34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bin/publish
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ 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
Expand All @@ -16,5 +18,6 @@ else
fi

cargo publish

cd ../..
rm -rf tmp/release
1 change: 0 additions & 1 deletion tmp/release
Submodule release deleted from bc5941

0 comments on commit f750d34

Please sign in to comment.