Skip to content

Commit ba83e9d

Browse files
committed
Build sdist and universal wheel before trying to upload to PyPI
1 parent 0a2bde0 commit ba83e9d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ jobs:
4343
name: Publish package to PyPI
4444
needs: [pytest, pycodestyle]
4545
steps:
46-
- name: Publish package
46+
- name: Prepare environment
47+
run: .github/workflows/prepare_environment.sh ${{ matrix.python_version }}
48+
- name: Build distributions
49+
run: python setup.py sdist bdist_wheel --universal
50+
- name: Publih package
4751
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
4852
uses: pypa/gh-action-pypi-publish@master
4953
with:

0 commit comments

Comments
 (0)