Merge "Add new release script" into stable/2024.1
diff --git a/build/release.sh b/build/release.sh
index e73b613..e925890 100755
--- a/build/release.sh
+++ b/build/release.sh
@@ -1,9 +1,8 @@
 #!/bin/bash -xe
 
 VERSION=$1
-LATEST_VERSION=$2
 
-if [ -z "$VERSION" ] || [ -z "$LATEST_VERSION" ]; then
+if [ -z "$VERSION" ]; then
   echo "Usage: $0 <version> <latest_version>"
   exit 1
 fi
@@ -16,8 +15,9 @@
 git add galaxy.yml roles/defaults/defaults/main.yml
 git commit -m "Release $VERSION"
 
-# Push the release commit
-git push
+# Create a local tag
+git tag v$VERSION
 
-# Create GitHub release with gh CLI
-gh release create v$VERSION --target $(git rev-parse HEAD) --generate-notes --latest=$LATEST_VERSION
+# Push the release commit
+git push gerrit refs/heads/$(git rev-parse --abbrev-ref HEAD)
+git push --tags gerrit refs/heads/$(git rev-parse --abbrev-ref HEAD)