Skip to content

Commit 0a32c73

Browse files
ci: add configurations for python-semantic-release
1 parent 2704b1f commit 0a32c73

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ permissions:
2222
jobs:
2323
release:
2424
runs-on: ubuntu-latest
25+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
2526
concurrency:
2627
group: ${{ github.workflow }}-release-${{ github.ref_name }}
2728
cancel-in-progress: false

pyproject.toml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
[build-system]
22
requires = ["setuptools", "wheel"]
3-
build-backend = "setuptools.build_meta"
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.semantic_release]
6+
version_variable = [
7+
"setup.py:__version__",
8+
"ibm_watson/version.py:__version__",
9+
]
10+
version_toml = []
11+
branch = "master"
12+
13+
[tool.semantic_release.changelog]
14+
exclude_commit_patterns = [
15+
'''chore(?:\([^)]*?\))?: .+''',
16+
'''ci(?:\([^)]*?\))?: .+''',
17+
'''refactor(?:\([^)]*?\))?: .+''',
18+
'''test(?:\([^)]*?\))?: .+''',
19+
'''build\((?!deps\): .+)''',
20+
]

0 commit comments

Comments
 (0)