diff --git a/.github/workflows/maven-central-release.yml b/.github/workflows/maven-central-release.yml
index 854db61b..fba02df6 100644
--- a/.github/workflows/maven-central-release.yml
+++ b/.github/workflows/maven-central-release.yml
@@ -7,6 +7,12 @@ on:
# version:
# description: 'Release version'
# required: true
+ push:
+ branches:
+ - main
+ - v[0-9]+
+ - v[0-9]+.[0-9]+
+ - cryostat-v[0-9]+.[0-9]+
jobs:
build:
diff --git a/pom.xml b/pom.xml
index 0b43ca43..a57cf5c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -589,6 +589,9 @@
true
true
target/staging-deploy
+
+ false