From a0f224528deb6aa8124560543e53ac00a79b1a2a Mon Sep 17 00:00:00 2001 From: Artesia Water <31697400+ArtesiaWater@users.noreply.github.com> Date: Thu, 4 Feb 2021 09:21:32 +0100 Subject: [PATCH] Update python-publish.yml --- .github/workflows/python-publish.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 1cf4b6a8..11ec133a 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -17,11 +17,14 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.x' + python-version: '3.8' - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install build setuptools wheel twine + - name: build binary wheel and a source tarball + run: | + python -m build --sdist --wheel --outdir dist/ - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@master with: