Skip to content

Commit cade62a

Browse files
committed
feat: GitHub Actions Publish
1 parent c6e51f9 commit cade62a

File tree

3 files changed

+55
-4
lines changed

3 files changed

+55
-4
lines changed

.github/workflows/build-push.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build and Publish Wheel
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
build_and_publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/[email protected]
15+
16+
- name: Install Rye
17+
shell: bash
18+
env:
19+
RYE_INSTALL_OPTION: "--yes"
20+
RYE_VERSION: 0.16.0
21+
run: |
22+
curl -fSL https://rye-up.com/get | bash
23+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
24+
25+
- name: Install dependencies
26+
run: |
27+
rye sync
28+
. .venv/bin/activate
29+
30+
- name: Build Wheel
31+
run: |
32+
rye build --clean
33+
34+
- name: Upload Wheel as Release Asset
35+
uses: softprops/action-gh-release@v1
36+
if: startsWith(github.ref, 'refs/tags/')
37+
with:
38+
files: dist/*.*
39+
40+
- name: Publish package distributions to TestPyPI
41+
uses: pypa/gh-action-pypi-publish@release/v1
42+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
43+
with:
44+
password: ${{ secrets.PYPI_API_TOKEN }}
45+
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
46+
# repository-url: https://test.pypi.org/legacy/

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22

33
APP 推送通知。支持往 **钉钉群、飞书群、Lark 群、Bark、Chanify、PushDeer、PushPlus、Showdoc、息知** 推送消息。
44

5+
<a href="https://pypi.org/project/ipush" target="_blank">
6+
<img src="https://img.shields.io/pypi/v/ipush.svg" alt="Package version">
7+
</a>
8+
9+
<a href="https://pypi.org/project/ipush" target="_blank">
10+
<img src="https://img.shields.io/pypi/pyversions/ipush.svg" alt="Supported Python versions">
11+
</a>
12+
513
## 使用说明
614

715
1. 安装依赖
816

9-
- https://pypi.org/project/ipush/
10-
11-
```shell
17+
```bash
1218
pip install -U ipush
1319
```
1420

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ dependencies = [
1010
"lxml>=4.9.4",
1111
]
1212
readme = "README.md"
13-
license ={ file = "LICENSE" }
1413
keywords = ["push", "notify", "dingtalk", "feishu", "lark", "bark", "chanify", "pushdeer", "pushplus", "showdoc", "xizhi"]
1514
requires-python = ">= 3.8"
1615
classifiers = [

0 commit comments

Comments
 (0)