build: [release] 我来刷版本号辣

This commit is contained in:
helloplhm-qwq 2024-01-31 23:19:57 +08:00
parent 7e35fee479
commit de46ab907f
No known key found for this signature in database
GPG Key ID: B7542212855B2C26
2 changed files with 4 additions and 2 deletions

View File

@ -9,10 +9,12 @@ def get_latest_tag():
t = subprocess.check_output(['git', 'tag']).decode('utf-8').strip().split("\n")
return t[-1] if (t[-1] != toml.load("./pyproject.toml")["tool"]["poetry"]["version"]) else t[-2]
def get_specified_tag(index):
return subprocess.check_output(['git', 'tag']).decode('utf-8').strip().split("\n")[index]
def get_changelog():
res = subprocess.check_output(
['git', 'log', f'{get_latest_tag()}..HEAD', '--pretty=format:"%h %s"']).decode('utf-8').strip()
['git', 'log', f'{get_specified_tag(-2)}..get_specified_tag(-1)', '--pretty=format:"%h %s"']).decode('utf-8').strip()
res = res.split('\n')
featMsg = []
fixMsg = []

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "lx-music-api-server-python"
version = "2.0.0.beta-5"
version = "2.0.0.beta-6"
description = "一个适配 LX Music 的 API 后端实现"
authors = ["helloplhm-qwq", "lerdb", "Folltoshe"]
license = "MIT"