Skip to content

Commit 17a9543

Browse files
authored
Merge branch 'main' into codex/publish-package-to-pip,-apt,-and-brew
2 parents 87153b1 + 7a2921d commit 17a9543

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

.github/workflows/publish-pypi.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
publish:
10+
name: Build and publish
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.11"
20+
21+
- name: Install build tools
22+
run: pip install build twine
23+
24+
- name: Build distribution
25+
run: python -m build
26+
27+
- name: Publish to PyPI
28+
uses: pypa/gh-action-pypi-publish@release/v1
29+
with:
30+
user: __token__
31+
password: ${{ secrets.PYPI_API_TOKEN }}

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "bilitickerbuy"
7-
version = "0.1.0"
7+
version = "2.14.4"
88
description = "开源的 B 站会员购辅助工具,提供命令行和 Gradio 界面"
99
readme = "README.md"
1010
requires-python = ">=3.11"
@@ -43,6 +43,10 @@ dependencies = [
4343
"tinydb~=4.8.0",
4444
"Pillow~=10.3.0",
4545
]
46+
[project.urls]
47+
Homepage = "https://github.com/mikumifa/biliTickerBuy"
48+
Source = "https://github.com/mikumifa/biliTickerBuy"
49+
4650
[project.scripts]
4751
bilitickerbuy = "main:main"
4852
btb = "main:main"

0 commit comments

Comments
 (0)