Skip to content

Commit 19318ce

Browse files
committed
build: add publish.yml github workflow
1 parent f8ce092 commit 19318ce

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: astral-sh/setup-uv@v4
13+
- run: uv sync
14+
- run: uv run python -m build
15+
- uses: pypa/gh-action-pypi-publish@release/v1
16+
with:
17+
password: ${{ secrets.PYPI_API_TOKEN }}

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ dev = [
5454
"pytest>=9.0.0",
5555
"pytest-asyncio>=0.23.0",
5656
"coverage>=7.0.0",
57+
"build>=1.3.0",
58+
"twine>=6.2.0",
5759
]
5860
lint = [
5961
"ruff>=0.8.0",

0 commit comments

Comments
 (0)