添加自动发布到pypi的github action
This commit is contained in:
parent
3f8bf5d975
commit
a4b552f1b4
8
.github/workflows/publish.yml
vendored
8
.github/workflows/publish.yml
vendored
@ -3,6 +3,8 @@ name: Publish
|
|||||||
on:
|
on:
|
||||||
# 当master分支有push时,触发action
|
# 当master分支有push时,触发action
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
tags:
|
tags:
|
||||||
- 'v*' # 以 'v' 开头的标签触发工作流程
|
- 'v*' # 以 'v' 开头的标签触发工作流程
|
||||||
|
|
||||||
@ -28,9 +30,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install build
|
pip install build
|
||||||
|
python -m pip install --upgrade twine
|
||||||
- name: Install Twine
|
|
||||||
run: python -m pip install --upgrade twine
|
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: python -m build
|
run: python -m build
|
||||||
@ -51,7 +51,7 @@ jobs:
|
|||||||
tag_name: ${{ github.ref }}
|
tag_name: ${{ github.ref }}
|
||||||
release_name: Release ${{ github.ref }}
|
release_name: Release ${{ github.ref }}
|
||||||
body: |
|
body: |
|
||||||
Update PyWxDump
|
[Auto Release] Update PyWxDump
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user