mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-26 11:45:04 +08:00
🚸 添加发布工作流
This commit is contained in:
parent
9d27abfe04
commit
5f5dcc7f99
@ -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}"
|
|
||||||
|
@ -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]*))?$)$'
|
Loading…
Reference in New Issue
Block a user