Skip to content

Commit 300f254

Browse files
committed
Add PyPI publish workflow
1 parent 2a2ee97 commit 300f254

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.13'
17+
cache: 'pip'
18+
- name: Build package
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install build
22+
python -m build
23+
- name: Publish to PyPI
24+
uses: pypa/gh-action-pypi-publish@release/v1
25+
with:
26+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)