Skip to content

Commit c4db8d1

Browse files
authored
Fix CI release workflow and remove unnecessary check (#214)
1 parent 58f2053 commit c4db8d1

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,12 @@ jobs:
1414
uses: actions/setup-python@v4
1515
with:
1616
python-version: 3.8
17-
- name: Build wheel
18-
run: |
19-
VERSION="${{ github.event.release.tag_name }}"
20-
VERSION="${VERSION,,}" # lowercase it
21-
VERSION="${VERSION#v}" # remove `v`
22-
17+
- name: Install wheel
18+
run: >-
2319
pip install wheel build
20+
- name: Build wheel
21+
run: >-
2422
python3 -m build
25-
26-
# Fail if we don't generate a package with the expected version
27-
if ( ! ls -A "dist/*${VERSION}*.whl" 1> /dev/null 2>&1 ); then
28-
exit 1
29-
fi
3023
- name: Publish distribution to PyPI
3124
uses: pypa/gh-action-pypi-publish@release/v1
3225
with:

0 commit comments

Comments
 (0)