diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 6d8793c10..31e21d66b 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -3,11 +3,10 @@ name: Publish snapshots to maven on: workflow_dispatch: push: - branches: [ - main - 1.* - 2.* - ] + branches: + - main + - '[0-9]+.[0-9]+' + - '[0-9]+.x' jobs: build-and-publish-snapshots: