更新PyPI发布工作流,限制标签匹配以支持版本前缀,调整版本源配置

This commit is contained in:
远野千束 2024-11-05 20:23:30 +08:00
parent 8ac81e358f
commit 6df5f5b6c5
2 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,7 @@ name: Publish
on: on:
push: push:
tags: tags:
- '*' - 'v*'
workflow_dispatch: workflow_dispatch:
jobs: jobs:

View File

@ -30,8 +30,9 @@ adapters = [
distribution = true distribution = true
[tool.pdm.version] [tool.pdm.version]
source = "file" source = "scm"
path = "nonebot_plugin_marshoai/constants.py" tag_filter = "v*"
tag_regex = '^v(?:\D*)?(?P<version>([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] [tool.pdm.build]
includes = [] includes = []