diff --git a/scripts/release.sh b/scripts/release.sh index 30516fa..fe3f2c9 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -8,6 +8,13 @@ set_version() { ./scripts/set-version.sh } +check_git_dirty() { + if [[ -n $(git status -s) ]]; then + echo "Working directory is dirty. Please commit or stash your changes before releasing." + exit 1 + fi +} + do_gh_release() { echo "Creating new release $GH_TAG" gh release create --generate-notes "$GH_TAG"