Skip to content

Commit 2d426a1

Browse files
committed
adding github publish action
1 parent a1c8b58 commit 2d426a1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/actions/tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: continuous-integration
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
publish:
8+
9+
name: Publish to PyPi
10+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout source
14+
uses: actions/checkout@v2
15+
- name: Build package
16+
run: |
17+
pip install wheel
18+
python setup.py sdist bdist_wheel
19+
- name: Publish
20+
uses: pypa/[email protected]
21+
with:
22+
user: __token__
23+
password: ${{ secrets.PYPI_KEY }}

0 commit comments

Comments
 (0)