Skip to content

Commit 012296c

Browse files
committed
Create pypi-release.yml
1 parent ccfc811 commit 012296c

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/pypi-release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish Python package
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.x"
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install setuptools wheel
23+
- name: Build a binary wheel
24+
run: >-
25+
python setup.py sdist bdist_wheel
26+
- name: Publish to PyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1
28+
with:
29+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)