🚸 添加发布工作流

This commit is contained in:
snowy 2024-08-18 03:49:00 +08:00
parent 9d27abfe04
commit 5f5dcc7f99
2 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,3 @@
from git import Repo
from liteyuki.bot import ( from liteyuki.bot import (
LiteyukiBot, LiteyukiBot,
get_bot, get_bot,
@ -22,6 +20,7 @@ from liteyuki.log import (
logger logger
) )
__all__ = [ __all__ = [
"LiteyukiBot", "LiteyukiBot",
"get_bot", "get_bot",
@ -32,7 +31,7 @@ __all__ = [
"load_plugin", "load_plugin",
"load_plugins", "load_plugins",
"init_log", "init_log",
"logger" "logger",
] ]
__version__ = f"6.3.5+g{Repo('.').head.commit.hexsha}"

View File

@ -35,3 +35,8 @@ build-backend = "pdm.backend"
[tool.pdm.build] [tool.pdm.build]
includes = ["liteyuki/", "LICENSE", "README.md"] includes = ["liteyuki/", "LICENSE", "README.md"]
excludes = ["tests/", "docs/", "src/"] excludes = ["tests/", "docs/", "src/"]
[tool.pdm.version]
source = "scm"
tag_filter = "test/*"
tag_regex = '^test/(?:\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]*))?$)$'