File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,10 @@ name: CI
99
1010on :
1111 push :
12- branches :
13- - master
14- tags-ignore :
15- - v* # release tags are automatically generated after a successful CI build, no need to run CI against them
12+ branches : ['master']
13+ tags : [v*]
1614 pull_request :
17- branches :
18- - master
15+ branches : ['**']
1916
2017jobs :
2118
@@ -77,10 +74,10 @@ jobs:
7774 release :
7875 concurrency : release
7976 runs-on : ubuntu-latest
80- needs : [build] # build job must pass before we can release
77+ needs : [verify, build] # build job must pass before we can release
8178
8279 if : github.event_name == 'push'
83- && github.ref == 'refs/heads/master'
80+ && ( github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
8481 && github.repository == 'mockito/mockito-testng'
8582 && !contains(toJSON(github.event.commits.*.message), '[skip release]')
8683
9895 distribution : ' zulu'
9996
10097 - name : Build and publish to Sonatype/MavenCentral
101- run : ./gradlew publishToSonatype closeAndReleaseStagingRepository githubRelease
98+ run : ./gradlew publishToSonatype closeAndReleaseStagingRepositories githubRelease
10299 env :
103100 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
104101 NEXUS_TOKEN_USER : ${{secrets.NEXUS_TOKEN_USER}}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments