From c4db8d1151b5a999ead73480faea4ea01b7cb7d7 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Mon, 24 Apr 2023 14:18:49 -0400 Subject: [PATCH] Fix CI release workflow and remove unnecessary check (#214) --- .github/workflows/publish-to-pypi.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 235902b9..fc291d2b 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -14,19 +14,12 @@ jobs: uses: actions/setup-python@v4 with: python-version: 3.8 - - name: Build wheel - run: | - VERSION="${{ github.event.release.tag_name }}" - VERSION="${VERSION,,}" # lowercase it - VERSION="${VERSION#v}" # remove `v` - + - name: Install wheel + run: >- pip install wheel build + - name: Build wheel + run: >- python3 -m build - - # Fail if we don't generate a package with the expected version - if ( ! ls -A "dist/*${VERSION}*.whl" 1> /dev/null 2>&1 ); then - exit 1 - fi - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: