Skip to content

Commit 9c11c12

Browse files
authored
Only run release on tags
1 parent c506ec4 commit 9c11c12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
needs: [build] # build job must pass before we can release
6565

6666
if: github.event_name == 'push'
67-
&& (github.ref == 'refs/heads/release/2.x' || startsWith(github.ref, 'refs/tags/v'))
67+
&& startsWith(github.ref, 'refs/tags/v')
6868
&& github.repository == 'mockito/mockito-scala'
6969
&& !contains(toJSON(github.event.commits.*.message), '[skip release]')
7070

@@ -83,7 +83,7 @@ jobs:
8383

8484
- name: Build and publish to Bintray/MavenCentral
8585
run: ./build.sh
86-
&& ./gradlew publishToSonatype githubRelease closeAndReleaseStagingRepository releaseSummary
86+
&& ./gradlew publishToSonatype githubRelease closeAndReleaseStagingRepositories releaseSummary
8787
env:
8888
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
8989
NEXUS_TOKEN_USER: ${{secrets.NEXUS_TOKEN_USER}}

0 commit comments

Comments
 (0)