Skip to content

Commit dac6977

Browse files
committed
test pypi permission issue
1 parent 80489c2 commit dac6977

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed

.github/workflows/mlir-tensorrt-pypi.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,13 @@ jobs:
139139
path: mlir-tensorrt/dist
140140
if-no-files-found: error
141141

142-
pypi-release-wheels-publish:
142+
test-pypi-release-wheels-publish:
143143
name: Publish to TestPyPI
144144
needs: [pypi-release-wheels-build]
145145
runs-on: ubuntu-latest
146+
environment:
147+
name: testpypi
148+
url: https://test.pypi.org/legacy/
146149
permissions:
147150
id-token: write
148151
packages: write
@@ -162,6 +165,35 @@ jobs:
162165
repository-url: https://test.pypi.org/legacy/
163166
user: __token__
164167
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
168+
verbose: true
169+
170+
pypi-release-wheels-publish:
171+
name: Publish to PyPI
172+
needs: [pypi-release-wheels-build]
173+
runs-on: ubuntu-latest
174+
environment:
175+
name: pypi
176+
url: https://pypi.org/project/mlir-tensorrt-jax/
177+
permissions:
178+
id-token: write
179+
packages: write
180+
contents: read
181+
steps:
182+
- name: Download built wheels
183+
uses: actions/download-artifact@v4
184+
with:
185+
pattern: release-wheels-*
186+
merge-multiple: true
187+
path: dist-collect
188+
189+
- name: Publish to PyPI
190+
uses: pypa/gh-action-pypi-publish@release/v1
191+
with:
192+
verbose: true
193+
pattern: release-wheels-*
194+
packages-dir: dist-collect
195+
user: __token__
196+
password: ${{ secrets.PYPI_API_TOKEN }}
165197

166198
concurrency:
167199
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-mlir-tensorrt-pypi
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
--exclude libcublas.so
22
--exclude libcublas.so.13
3-
--exclude libcublas-e70f38ef.so.13.1.0.3
43

54
--exclude libcublasLt.so
65
--exclude libcublasLt.so.13
7-
--exclude libcublasLt-656298c8.so.13.1.0.3
86

97
--exclude libcuda.so
108
--exclude libcuda.so.580
11-
--exclude libcuda-f27223c5.so.580.95.05
129

1310
--exclude libcudart.so
1411
--exclude libcudart.so.13
15-
--exclude libcudart-96c42e41.so.13.0.96
1612

1713
--exclude libtvm_ffi.so
18-
--exclude libtvm_ffi-4d4931fa.so

0 commit comments

Comments
 (0)