From ba83e9ddc19c48656befe9098cde8e31876417eb Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Fri, 21 Feb 2020 13:02:24 +0100 Subject: [PATCH] Build sdist and universal wheel before trying to upload to PyPI --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c566bb..b01c485 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: