添加自动发布到pypi的github action

This commit is contained in:
xaoyo 2023-10-28 20:14:21 +08:00
parent 26d7b36e50
commit 1437f3d7fc
2 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,8 @@ jobs:
pip install .
- name: Build package # 构建包
run: python setup.py sdist bdist_wheel # 构建 wheel 和 sdist 包
run: |
python setup.py sdist bdist_wheel # 构建 wheel 和 sdist 包
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1 # 使用 PyPA 的 action

View File

@ -47,4 +47,5 @@ setup(
'wxdump = pywxdump.command:console_run',
],
},
setup_requires=['wheel']
)