Skip to content

Commit 3723cbc

Browse files
jatorreclaude
andcommitted
Add GitHub Actions workflow for PyPI publishing
Publishes to PyPI automatically when a version tag (v*) is pushed. Uses PyPI trusted publishing (no token storage needed). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f646d6c commit 3723cbc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
environment: pypi
12+
permissions:
13+
id-token: write # Required for trusted publishing
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v4
19+
20+
- name: Build package
21+
run: uv build
22+
23+
- name: Publish to PyPI
24+
uses: pypa/gh-action-pypi-publish@release/v1
25+
# Uses trusted publishing - no token needed if configured on PyPI

0 commit comments

Comments
 (0)