Skip to content

Commit 9dc8f73

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

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ jobs:
114114
mode: instrumentation
115115

116116
release:
117-
needs:
118-
- test
119-
- lint
120-
- commitlint
117+
# needs:
118+
# - test
119+
# - lint
120+
# - commitlint
121121
if: ${{ github.repository_owner }} == "python-zeroconf"
122122

123123
runs-on: ubuntu-latest
@@ -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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,11 @@ keep_trailing_newline = true
7171
[tool.semantic_release.branches.master]
7272
match = "master"
7373

74+
[tool.semantic_release.branches."release-0.x"]
75+
match = "release-0.x"
76+
7477
[tool.semantic_release.branches.noop]
75-
match = "(?!master$)"
78+
match = "(?!(master|release-0.x)$)"
7679
prerelease = true
7780

7881
[tool.poetry.dependencies]

0 commit comments

Comments
 (0)