diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c28a021c..648d81b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,8 @@ on: push: branches: - main + tags: + - 3.* pull_request: branches: - main @@ -78,7 +80,7 @@ jobs: needs: [build] # build job must pass before we can release if: github.event_name == 'push' - && github.ref == 'refs/heads/main' + && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/3.')) && github.repository == 'mockito/mockito-kotlin' && !contains(toJSON(github.event.commits.*.message), '[skip release]')