Skip to content

Commit 1fd901d

Browse files
committed
feat: switch trigger branches
1 parent 391f9a5 commit 1fd901d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/semantic-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Semantic Release
33
on:
44
push:
55
branches:
6-
- master
6+
- main
7+
- next
78

89
jobs:
910
release:

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@ allow_zero_version = true
3232
tag_format = "v{version}"
3333

3434
[tool.semantic_release.branches.main]
35-
match = "(next|master)"
36-
prerelease_token = "rc"
35+
match = "main"
3736
prerelease = false
3837

38+
[tool.semantic_release.branches.next]
39+
match = "next"
40+
prerelease_token = "next"
41+
prerelease = true
42+
3943
[tool.semantic_release.changelog]
4044
template_dir = "templates"
4145
changelog_file = "CHANGELOG.md"
@@ -74,4 +78,3 @@ insecure = false
7478
[tool.semantic_release.publish]
7579
dist_glob_patterns = ["dist/*"]
7680
upload_to_vcs_release = true
77-

0 commit comments

Comments
 (0)