Skip to content

Commit 2d572e0

Browse files
authored
Create release-pypi.yml
1 parent 0e97048 commit 2d572e0

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/release-pypi.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# .github/workflows/release-pypi.yml
2+
name: Publish to PyPI on tag
3+
4+
on:
5+
push:
6+
tags:
7+
- "v*.*.*"
8+
9+
jobs:
10+
build-publish-pypi:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.11"
17+
- run: python -m pip install --upgrade build
18+
- run: python -m build
19+
- name: Publish to PyPI
20+
uses: pypa/gh-action-pypi-publish@release/v1
21+
with:
22+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)