diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 5327fb7..4b96449 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -8,8 +8,14 @@ name: Java CI with Gradle on: + workflow_dispatch: push: branches: [ "1.21.x" ] + if: "!startsWith(github.ref, 'refs/tags/')" + push: + branches: [ "1.21.x" ] + tags: "*" + if: "startsWith(github.ref, 'refs/tags/')" pull_request: branches: [ "1.21.x" ]