Skip to content

Commit

Permalink
Merge 7972359 into 7f75fe3
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperlees committed Dec 1, 2020
2 parents 7f75fe3 + 7972359 commit 1283b3f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/pypi_upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: pypi_upload

on:
release:
types: created

jobs:
build:
name: PyPI Upload
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2

- name: Install latest pip, setuptools, twine + wheel
run: |
python -m pip install --upgrade pip setuptools twine wheel
- name: Build wheels
run: |
python setup.py bdist_wheel
python setup.py sdist
- name: Upload to PyPI via Twine
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload --verbose -u '__token__' dist/*

0 comments on commit 1283b3f

Please sign in to comment.