From 295a2aac42c3d81d3b7e579f4822bd4b035d50e6 Mon Sep 17 00:00:00 2001 From: Atticus Zhou <119986792+Atticuszz@users.noreply.github.com> Date: Thu, 11 Jan 2024 21:54:39 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9AUpdate=20pyproject.toml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index bbd3927..ae7730d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,6 +39,16 @@ trio = "^0.24.0" [tool.poetry.scripts] tests = 'poetry_scripts:run_tests' +[tool.semantic_release] +version_variable = "pyproject.toml:tool.poetry.version" +branch = "main" +upload_to_PyPI = false # 禁用上传到 PyPI +upload_to_release = true # 启用上传到 GitHub Releases +build_command = "pip install poetry && poetry build" +commit_message = "chore(release): bump version to v{version}" +changelog_components = "semantic_release.changelog.changelog_headers,semantic_release.changelog.compare_url" + + [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api"