Skip to content

Commit

Permalink
Add PyPI publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Unrud committed May 19, 2020
1 parent 1a0a215 commit eb91f79
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PyPI publish
on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.x
- name: Install dependencies
run: python -m pip install wheel
- name: Build
run: python setup.py sdist bdist_wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}

0 comments on commit eb91f79

Please sign in to comment.