File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Create Release
22on :
33 push :
4- # run only on tags
4+ # Release a new version every time a v6 tag is pushed.
55 tags :
6- - ' **'
6+ - ' 6.0.0-*'
7+ pull_request :
8+ # Release a new SNAPSHOT version every time a PR is merged to v6.
9+ types : [closed]
10+ branches : ['v6']
711
812jobs :
913 release :
1014 name : Deploy
11- if : startsWith(github.ref, 'refs/tags')
15+ if : >
16+ (github.event_name == 'push' && startsWith(github.ref, 'refs/tags'))
17+ || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
1218 runs-on : ubuntu-latest
1319 steps :
1420 - uses : actions/checkout@v4
3945 retention-days : 1
4046 gh-release :
4147 name : Create a GitHub Release
42- if : startsWith(github.ref, 'refs/tags')
48+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
4349 runs-on : ubuntu-latest
4450 needs : [ release ]
4551 steps :
You can’t perform that action at this time.
0 commit comments