File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -139,15 +139,15 @@ jobs:
139139 # Do a dry run of PSR
140140 - name : Test release
141141 uses : python-semantic-release/python-semantic-release@4d4cb0ab842247caea1963132c242c62aab1e4d5 # v10.4.1
142- if : github.ref_name != 'master'
142+ if : github.ref_name != 'master' && github.ref_name != 'release-0.x'
143143 with :
144144 no_operation_mode : true
145145
146146 # On main branch: actual PSR + upload to PyPI & GitHub
147147 - name : Release
148148 uses : python-semantic-release/python-semantic-release@4d4cb0ab842247caea1963132c242c62aab1e4d5 # v10.4.1
149149 id : release
150- if : github.ref_name == 'master'
150+ if : github.ref_name == 'master' || github.ref_name == 'release-0.x'
151151 with :
152152 github_token : ${{ secrets.GITHUB_TOKEN }}
153153
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ version_variables = [
5858]
5959build_command = " pip install poetry && poetry build"
6060tag_format = " {version}"
61+ allow_zero_version = true
6162
6263[tool .semantic_release .changelog ]
6364exclude_commit_patterns = [
@@ -71,8 +72,11 @@ keep_trailing_newline = true
7172[tool .semantic_release .branches .master ]
7273match = " master"
7374
75+ [tool .semantic_release .branches ."release-0 .x" ]
76+ match = " release-0.x"
77+
7478[tool .semantic_release .branches .noop ]
75- match = " (?!master$)"
79+ match = " (?!( master|release-0.x) $)"
7680prerelease = true
7781
7882[tool .poetry .dependencies ]
You can’t perform that action at this time.
0 commit comments