Skip to content

Commit 27b00f2

Browse files
committed
ci: add Github workflow to publish to pypi
1 parent 443b661 commit 27b00f2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
pypi-publish:
7+
name: upload release to PyPI
8+
runs-on: ubuntu-latest
9+
environment: release
10+
permissions:
11+
id-token: write
12+
steps:
13+
- name: Checkout sources
14+
uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.11'
18+
cache: 'pip'
19+
- name: Build package distributions
20+
run: |
21+
pip install wheel
22+
python setup.py sdist bdist_wheel
23+
- name: Publish package distributions to PyPI
24+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)