From 6df5f5b6c581caee275b62778dbd85599e4278ec Mon Sep 17 00:00:00 2001 From: snowykami Date: Tue, 5 Nov 2024 20:23:30 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=9B=B4=E6=96=B0PyPI=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E5=B7=A5=E4=BD=9C=E6=B5=81=EF=BC=8C=E9=99=90=E5=88=B6?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=8C=B9=E9=85=8D=E4=BB=A5=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=89=8D=E7=BC=80=EF=BC=8C=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=BA=90=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pypi-publish.yml | 2 +- pyproject.toml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 = []