From 8c336009a386d6f9028724ae9ba964c8ee23202e Mon Sep 17 00:00:00 2001 From: davidlatwe Date: Sat, 30 Oct 2021 17:34:30 +0800 Subject: [PATCH] use 'build' to build release --- .github/workflows/pypi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 1a03a7b..6a73ee5 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -21,11 +21,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install setuptools wheel twine build - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py sdist bdist_wheel + python -m build --sdist --wheel twine upload dist/*