Skip to content

Commit e3d3a31

Browse files
committed
Add PyPI publish workflow
1 parent f712cee commit e3d3a31

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish to PyPI (tags)
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: read
10+
id-token: write # required for Trusted Publishing (no API token)
11+
12+
jobs:
13+
build-and-publish:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.x"
20+
- run: pip install build
21+
- run: python -m build
22+
- name: Publish to PyPI
23+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)