Skip to content

Commit 2acbe80

Browse files
committed
Set up github action: deploy to PyPI upon release
1 parent b69f13c commit 2acbe80

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)