Skip to content

Commit 0f13d15

Browse files
fix: add package metadata for PyPI publication
1 parent 7e7bb92 commit 0f13d15

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ name: Publish PyPi
33
on:
44
push:
55
tags:
6-
- 'v*.*.*' # 仅匹配类似 v1.0.0 的标签
6+
- 'v*.*.*'
77

88
permissions:
9-
id-token: write # 允许请求 OIDC JWT
10-
contents: read # 允许 actions/checkout 使用
9+
id-token: write
10+
contents: read
1111

1212
jobs:
1313
release-build:
1414
runs-on: ubuntu-latest
15-
1615
steps:
1716
- uses: actions/checkout@v4
1817

@@ -37,6 +36,8 @@ jobs:
3736
pypi-publish:
3837
runs-on: ubuntu-latest
3938
needs: release-build
39+
permissions:
40+
id-token: write
4041
steps:
4142
- name: Retrieve release distributions
4243
uses: actions/download-artifact@v4
@@ -47,4 +48,4 @@ jobs:
4748
- name: Publish release distributions to PyPI
4849
uses: pypa/gh-action-pypi-publish@v1.8.14
4950
with:
50-
password: ${{ secrets.PYPI_TOKEN }}
51+
attestations: true

fastapi_amis/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
"""FastAPI Amis - A FastAPI integration with Baidu Amis."""
21

3-
__version__ = "0.0.1"
4-
__author__ = "kylin"
5-
__email__ = "260987762@qq.com"
6-
7-
__all__ = ["__version__", "__author__", "__email__"]

0 commit comments

Comments
 (0)