mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
release scripts
This commit is contained in:
parent
5a64e09204
commit
9ef6dec94a
4 changed files with 157 additions and 65 deletions
27
scripts/publish-release.sh
Executable file
27
scripts/publish-release.sh
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euo pipefail xtrace
|
||||
|
||||
if [[ -n $(git status --porcelain | grep -v VERSION) ]]; then
|
||||
echo "❌ There are other un-staged changes to the repository besides VERSION"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
VERSION="$(cat VERSION)"
|
||||
|
||||
echo "Publishing version v$VERSION..."
|
||||
|
||||
make version
|
||||
git add --all
|
||||
git commit -m "v$VERSION"
|
||||
git tag v$VERSION
|
||||
git push origin main v$VERSION
|
||||
|
||||
if grep -qE "alpha|beta" VERSION; then
|
||||
gh release create v$VERSION --title=v$VERSION --prerelease --notes=""
|
||||
else
|
||||
gh release create v$VERSION --title=v$VERSION
|
||||
fi
|
||||
|
||||
|
||||
echo "✅ Published! version v$VERSION"
|
||||
Loading…
Add table
Add a link
Reference in a new issue