You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
proxysql/deps/sqlite3/sqlite-rembed-source/scripts/publish-release.sh

28 lines
629 B

#!/bin/bash
set -euo pipefail xtrace
if [[ -n $(git status --porcelain | grep -v VERSION | grep -v sqlite-dist.toml) ]]; then
echo "❌ There are other un-staged changes to the repository besides VERSION and sqlite-dist.toml"
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"