Skip to content

Commit

Permalink
Build sdist and universal wheel before trying to upload to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Feb 21, 2020
1 parent 0a2bde0 commit ba83e9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ jobs:
name: Publish package to PyPI
needs: [pytest, pycodestyle]
steps:
- name: Publish package
- name: Prepare environment
run: .github/workflows/prepare_environment.sh ${{ matrix.python_version }}
- name: Build distributions
run: python setup.py sdist bdist_wheel --universal
- name: Publih package
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
Expand Down

0 comments on commit ba83e9d

Please sign in to comment.