Skip to content

Commit

Permalink
Fix CI release workflow and remove unnecessary check (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly authored Apr 24, 2023
1 parent 58f2053 commit c4db8d1
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c4db8d1

Please sign in to comment.