@@ -123,41 +123,21 @@ Pushing the tag triggers a CI run automatically. Monitor it in the
123123
124124## Upload wheels to PyPI
125125
126- This is a two-stage process: first publish to TestPyPI, verify, then
127- publish to PyPI.
128-
129- ### Stage 1: TestPyPI
126+ This is a single ` CI: Release ` workflow run with two sequential stages:
127+ publish to TestPyPI, then publish the same wheel set to PyPI.
130128
1311291 . Go to ** Actions > CI: Release** and run the workflow with:
132130 - ** Component** : ` cuda-core `
133131 - ** The release git tag** : ` cuda-core-v0.6.0 `
134- - ** The GHA run ID that generated validated artifacts** : This is the
135- run ID of the successful tag-triggered CI run from the previous step.
136- You can find it in the URL when viewing the run in the Actions tab
137- (e.g. ` https://github.com/NVIDIA/cuda-python/actions/runs/123456789 `
138- — the run ID is ` 123456789 ` ).
139- - ** build-ctk-ver** : the ` cuda.build.version ` from
140- [ ` ci/versions.yml ` ] ( ../ci/versions.yml ) (e.g. ` 13.1.1 ` )
141- - ** Which wheel index to publish to** : ` testpypi `
142-
143- 2 . Wait for the workflow to complete.
144-
145- 3 . Verify the TestPyPI upload by installing and running tests from a
146- checked-out copy of the repository:
147-
148- ``` bash
149- pip install -i https://test.pypi.org/simple/ \
150- --extra-index-url https://pypi.org/simple/ \
151- cuda-core==0.6.0
152- cd cuda_core/tests && pytest
153- ```
154132
155- ### Stage 2: PyPI
133+ The workflow automatically looks up the successful tag-triggered CI run
134+ for the selected release tag.
156135
157- Once TestPyPI verification passes, rerun the same workflow with:
158- - ** Which wheel index to publish to** : ` pypi `
136+ 2 . Wait for the workflow to complete. It will:
137+ - publish the selected wheels to TestPyPI
138+ - publish the same wheel set to PyPI
159139
160- After completion, verify:
140+ 3 . After completion, verify the final PyPI upload :
161141
162142``` bash
163143pip install cuda-core==0.6.0
0 commit comments