Skip to content

Commit 966e058

Browse files
committed
Test release flow
1 parent b823304 commit 966e058

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/release_pypi_package.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,14 @@ jobs:
2020
with:
2121
python-version: 3.9
2222

23-
- name: Install pypa/build
24-
run: >-
25-
python -m
26-
pip install
27-
build
28-
--user
23+
- name: Extract version and remove v prefix
24+
id: extract_version
25+
run: |
26+
VERSION=$(echo ${{ github.ref }} | cut -d'/' -f3)
27+
echo "::set-output name=version::${VERSION#v}"
28+
2929
- name: Build a binary wheel and a source tarball
30-
run: >-
31-
python -m
32-
build
33-
--sdist
34-
--wheel
35-
--outdir dist/
36-
.
30+
run: python setup.py sdist bdist_wheel
3731

3832
- name: Publish distribution 📦 to PyPI
3933
if: startsWith(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)