Skip to content

Commit 9a58630

Browse files
authored
[MNT] add missing wheels build step to pypi.yml release workflow (#392)
The release workflow was missing the wheels build step, this is now added.
1 parent 5ebf6ec commit 9a58630

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/pypi.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,32 @@ permissions:
1616
contents: read
1717

1818
jobs:
19-
deploy:
19+
build_wheels:
20+
name: Build wheels
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.11'
2029

30+
- name: Build wheel
31+
run: |
32+
python -m pip install build
33+
python -m build --wheel --sdist --outdir wheelhouse
34+
35+
- name: Store wheels
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: wheels
39+
path: wheelhouse/*
40+
41+
deploy:
2142
name: Upload wheels to PyPI
2243
runs-on: ubuntu-latest
44+
needs: build_wheels
2345

2446
permissions:
2547
id-token: write

0 commit comments

Comments
 (0)