Skip to content

Commit 022cbe1

Browse files
authored
create workflow for publishing to pypi with gha (#21)
* create workflow for publishing to pypi with gha * simple version with pypi API token * use latest checkout action * remove CODEOWNERS file
1 parent 03c8222 commit 022cbe1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# publish.yml
2+
3+
name: "Publish"
4+
5+
on:
6+
release:
7+
types: ["published"]
8+
9+
jobs:
10+
run:
11+
name: "Build and publish release"
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v5
16+
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v3
19+
with:
20+
enable-cache: true
21+
cache-dependency-glob: uv.lock
22+
23+
- name: Set up Python
24+
run: uv python install 3.10 # set python version
25+
26+
- name: Build
27+
run: uv build
28+
29+
- name: Publish
30+
run: uv publish -t ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)