Skip to content

Commit fe17add

Browse files
Add GitHub Actions workflow for auto-publish to PyPI on tag
Triggers on `git tag v0.2.0 && git push --tags`. Uses PyPI trusted publisher (OIDC) — no token needed in secrets. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 097624e commit fe17add

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.11"
19+
- run: pip install build
20+
- run: python -m build
21+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)