We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58f2053 commit c4db8d1Copy full SHA for c4db8d1
.github/workflows/publish-to-pypi.yml
@@ -14,19 +14,12 @@ jobs:
14
uses: actions/setup-python@v4
15
with:
16
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
-
+ - name: Install wheel
+ run: >-
23
pip install wheel build
+ - name: Build wheel
24
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
30
- name: Publish distribution to PyPI
31
uses: pypa/gh-action-pypi-publish@release/v1
32
0 commit comments