Skip to content

Commit 6573eb5

Browse files
committed
Add python-release action
1 parent 32877c6 commit 6573eb5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release to PyPi
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python 3.7
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: 3.7
16+
- name: Install build requirements
17+
run: python -m pip install wheel
18+
- name: Build package
19+
run: python setup.py sdist bdist_wheel
20+
- name: Publish package
21+
uses: pypa/gh-action-pypi-publish@master
22+
with:
23+
user: __token__
24+
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)