diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index f411f3d..714292d 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -3,7 +3,7 @@ name: Publish on: push: tags: - - '*' + - 'v*' workflow_dispatch: jobs: diff --git a/pyproject.toml b/pyproject.toml index 4158c12..cfd3942 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,8 +30,9 @@ adapters = [ distribution = true [tool.pdm.version] -source = "file" -path = "nonebot_plugin_marshoai/constants.py" +source = "scm" +tag_filter = "v*" +tag_regex = '^v(?:\D*)?(?P([1-9][0-9]*!)?(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))*((a|b|c|rc)(0|[1-9][0-9]*))?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$)$' [tool.pdm.build] includes = []