Skip to content

Commit 6b63906

Browse files
committed
feat: trigger semantic releases for 0.x branch
1 parent f8caab0 commit 6b63906

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ version_variables = [
5858
]
5959
build_command = "pip install poetry && poetry build"
6060
tag_format = "{version}"
61+
allow_zero_version = true
6162

6263
[tool.semantic_release.changelog]
6364
exclude_commit_patterns = [
@@ -71,8 +72,11 @@ keep_trailing_newline = true
7172
[tool.semantic_release.branches.master]
7273
match = "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)$)"
7680
prerelease = true
7781

7882
[tool.poetry.dependencies]

0 commit comments

Comments
 (0)