Skip to content

Commit b886b70

Browse files
committed
test semantic release
1 parent e3f863a commit b886b70

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/CD.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ jobs:
1414
run: |
1515
python3 -m pip install --upgrade build
1616
python3 -m build
17-
- name: Upload
18-
run: |
19-
python3 -m pip install twine
20-
python3 -m twine upload --repository pypi dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }}
17+
- name: Python Semantic Release
18+
uses: python-semantic-release/python-semantic-release@master
19+
with:
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
# - name: Upload
22+
# run: |
23+
# python3 -m pip install twine
24+
# python3 -m twine upload --repository pypi dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }}

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ namespaces = false
3737
[tool.setuptools.dynamic]
3838
dependencies = {file = ["requirements.txt"]}
3939

40-
[tool.semantic_release.branches.master]
40+
[tool.semantic_release]
4141
version_variable = "pyproject.toml:version"
42-
version_source = "commit"
43-
prerelease = false
42+
43+
[tool.semantic_release.branches.master]
44+
match = "master"
4445

4546
[tool.semantic_release.branches.next]
46-
version_variable = "pyproject.toml:version"
47-
version_source = "commit"
47+
match = "next"
4848
prerelease_tag = "rc"
4949
prerelease = true

0 commit comments

Comments
 (0)