Skip to content

Commit dc4ba3c

Browse files
committed
Create publish-to-pypi.yml
1 parent 782583b commit dc4ba3c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish releases to PyPI
2+
3+
on:
4+
release:
5+
types: [published, prereleased]
6+
7+
jobs:
8+
build-and-publish:
9+
name: Builds and publishes releases to PyPI
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Set up Python 3.8
14+
uses: actions/[email protected]
15+
with:
16+
python-version: 3.8
17+
- name: Install wheel
18+
run: >-
19+
pip install wheel
20+
- name: Build
21+
run: >-
22+
python3 setup.py sdist bdist_wheel
23+
- name: Publish release to PyPI
24+
uses: pypa/gh-action-pypi-publish@master
25+
with:
26+
user: __token__
27+
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)