diff --git a/scripts/upload-to-flatpak-repo.sh b/scripts/upload-to-flatpak-repo.sh
index f416132e669ba8deb3f97e37d38cffed9a19b6eb..fdb37f82864b7f1aa63b51eb3e703c37fd9a4c96 100755
--- a/scripts/upload-to-flatpak-repo.sh
+++ b/scripts/upload-to-flatpak-repo.sh
@@ -18,5 +18,7 @@ fi
 
 BUILD_URL=${BUILD_URL/http:/https:}
 
-./flat-manager-client push --commit --publish $BUILD_URL $1
+./flat-manager-client push $BUILD_URL $1
+./flat-manager-client commit --wait $BUILD_URL
+./flat-manager-client publish --wait $BUILD_URL