Skip to content

Commit 903e645

Browse files
Update python-publish.yml
1 parent 9161ded commit 903e645

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/python-publish.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,21 @@ jobs:
3737
temp: ${{ runner.temp }}
3838
cuda: '12.9'
3939
run: |
40-
chmod +x ${{ github.workspace }}/tensor-array-repo/Tensor-Array/scripts/actions/install-cuda-ubuntu.sh
41-
${{ github.workspace }}/tensor-array-repo/Tensor-Array/scripts/actions/install-cuda-ubuntu.sh
40+
chmod +x ./tensor-array-repo/Tensor-Array/scripts/actions/install-cuda-ubuntu.sh
41+
./tensor-array-repo/Tensor-Array/scripts/actions/install-cuda-ubuntu.sh
4242
43-
- name: Build release distributions
44-
run: |
45-
# NOTE: put your own distribution build steps here.
46-
python -m pip install build
47-
python -m build
43+
- name: Build wheels
44+
uses: pypa/cibuildwheel@v3.0.1
45+
with:
46+
package-dir: .
47+
output-dir: wheelhouse
48+
config-file: ./pyproject.toml
4849

4950
- name: Upload distributions
5051
uses: actions/upload-artifact@v4
5152
with:
5253
name: release-dists
53-
path: dist/
54+
path: wheelhouse/
5455

5556
pypi-publish:
5657
runs-on: ubuntu-latest
@@ -77,12 +78,12 @@ jobs:
7778
uses: actions/download-artifact@v4
7879
with:
7980
name: release-dists
80-
path: dist/
81+
path: wheelhouse/
8182

8283
- name: Publish release distributions to PyPI
8384
uses: pypa/gh-action-pypi-publish@release/v1
8485
with:
85-
packages-dir: dist/
86+
packages-dir: wheelhouse/
8687

8788
testpypi-publish:
8889
runs-on: ubuntu-latest
@@ -109,11 +110,11 @@ jobs:
109110
uses: actions/download-artifact@v4
110111
with:
111112
name: release-dists
112-
path: dist/
113+
path: wheelhouse/
113114

114115
- name: Publish release distributions to TestPyPI
115116
uses: pypa/gh-action-pypi-publish@release/v1
116117
with:
117118
repository-url: https://test.pypi.org/legacy/
118-
packages-dir: dist/
119+
packages-dir: wheelhouse/
119120

0 commit comments

Comments
 (0)