Skip to content

Commit

Permalink
Added: Automatic PyPI deploy on tag creation #1337 (#1400)
Browse files Browse the repository at this point in the history
  • Loading branch information
insspb committed May 26, 2020
1 parent 0d4b482 commit 0ee527d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pip-publish.yml
@@ -0,0 +1,26 @@
name: Upload to PyPI

on:
release:
types: [published]

jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.7"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine
- name: Package project
run: python setup.py sdist bdist_wheel
- name: Upload distributions
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: twine upload dist/*

0 comments on commit 0ee527d

Please sign in to comment.