添加自动发布到pypi的github action
This commit is contained in:
parent
e8a8fa92b4
commit
20ba8a2be6
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: PublishPYPI
|
||||
name: Publish
|
||||
|
||||
on:
|
||||
# 当master分支有push时,触发action
|
||||
@ -8,7 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: Publish Pypi
|
||||
name: Publish Pypi and Create Release
|
||||
if: github.repository == 'xaoyaoo/PyWxDump' && contains(github.ref, 'tags/v') # 仅在指定仓库的 tag 触发工作流程
|
||||
# 此作业在 Linux 上运行
|
||||
runs-on: windows-latest
|
||||
|
@ -11,7 +11,7 @@
|
||||
[](https://pypi.org/project/pywxdump/)
|
||||
[](https://pypi.org/project/pywxdump/)
|
||||
[](https://github.com/xaoyaoo/PyWxDump/blob/master/LICENSE)
|
||||
[](https://pypi.org/project/pywxdump/)
|
||||
[](https://github.com/xaoyaoo/PyWxDump/actions/workflows/publish.yml)
|
||||
|
||||
<details>
|
||||
<summary><strong>更新日志(点击展开):</strong></summary>
|
||||
|
Loading…
Reference in New Issue
Block a user