mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-14 13:47:24 +08:00
🚸 添加发布工作流
This commit is contained in:
parent
0a3363ebce
commit
f37b469ab9
2
.github/workflows/pypi-publish.yml
vendored
2
.github/workflows/pypi-publish.yml
vendored
@ -13,9 +13,7 @@ jobs:
|
|||||||
name: upload release to PyPI
|
name: upload release to PyPI
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
# 这个权限是为了私有仓库。
|
|
||||||
contents: read
|
contents: read
|
||||||
# 重要提示:这个权限对于可信发布是必需的。
|
|
||||||
id-token: write
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -20,4 +20,4 @@ __version__ = "6.3.5"
|
|||||||
|
|
||||||
|
|
||||||
def format_version(version: SCMVersion) -> str:
|
def format_version(version: SCMVersion) -> str:
|
||||||
return f"{__version__}+{__commit__[:7]}"
|
return f"{__version__}.dev{__commit__[:7]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user