Skip to content

Commit

Permalink
Add action to upload to pypi (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
kornicameister authored Jun 13, 2020
1 parent a90c131 commit 3c56c7f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Upload Python Package

"on":
release:
types: [created]

jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py twine --commit --rebuild --egg=all --sdist=all

0 comments on commit 3c56c7f

Please sign in to comment.