Skip to content

Commit 6b41153

Browse files
committed
Prepare PyPI publishing metadata and trusted workflow
1 parent f5e665b commit 6b41153

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish Python Package
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
13+
contents: read
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.13"
21+
22+
- name: Build package
23+
working-directory: python
24+
run: |
25+
python -m pip install --upgrade pip hatch
26+
hatch build
27+
28+
- name: Publish to PyPI (Trusted Publishing)
29+
uses: pypa/gh-action-pypi-publish@release/v1
30+
with:
31+
packages-dir: python/dist

python/pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ test = [
3232
]
3333

3434
[project.urls]
35-
Homepage = "https://github.com/pyritone/Py-Ritone"
36-
Repository = "https://github.com/pyritone/Py-Ritone"
35+
Homepage = "https://github.com/GSstarGamer/Py-Ritone"
36+
Repository = "https://github.com/GSstarGamer/Py-Ritone"
3737

3838
[project.scripts]
3939
pyritone = "pyritone.cli:main"
@@ -55,3 +55,4 @@ include = [
5555
pythonpath = ["src"]
5656
addopts = "-q"
5757
asyncio_mode = "auto"
58+

0 commit comments

Comments
 (0)