Skip to content

Commit 2eb2a1e

Browse files
committed
feat: add CD file for publish
1 parent f67014d commit 2eb2a1e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish package to PyPI
2+
3+
on:
4+
release:
5+
branches:
6+
- master
7+
types: [published]
8+
9+
jobs:
10+
Deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v7
19+
20+
- name: Install dependencies
21+
run: uv sync
22+
23+
- name: Build package
24+
run: uv build
25+
26+
- name: Publish package to PyPI
27+
run: uv publish --token ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)