Skip to content

Commit 0db7395

Browse files
committed
ci: build release artifacts in release workflows
Move release publishing away from tag-triggered CI artifact lookup by having release workflows verify main CI, build tagged artifacts in-run, and publish from those exact outputs. This cuts duplicate release work and keeps the release docs, assets, and wheel uploads tied to the same workflow execution. Made-with: Cursor
1 parent 026eb30 commit 0db7395

14 files changed

+1174
-813
lines changed

.github/ISSUE_TEMPLATE/release_checklist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ body:
2323
- label: "Finalize the doc update, including release notes (\"Note: Touching docstrings/type annotations in code is OK during code freeze, apply your best judgement!\")"
2424
- label: Update the docs for the new version
2525
- label: Create a public release tag
26-
- label: Wait for the tag-triggered CI run to complete, and use that run ID for release workflows
26+
- label: Confirm the tagged commit already has a green CI run on main, then run the release workflow for that tag
2727
- label: If any code change happens, rebuild the wheels from the new tag
2828
- label: Upload wheels to PyPI
2929
- label: Update the conda recipe & release conda packages

.github/RELEASE-core.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,14 @@ git push origin cuda-core-v0.6.0
108108

109109
---
110110

111-
## Wait for the tag-triggered CI run to complete
111+
## Verify the tagged commit already passed CI on `main`
112112

113-
Pushing the tag triggers a CI run automatically. Monitor it in the
114-
**Actions** tab on GitHub.
113+
Before running release, confirm that the tagged commit already has a
114+
successful `CI` run on `main`. The release workflow now checks this as a
115+
preflight step, but it is still worth verifying up front.
115116

116-
- **All CI tests should succeed.** If any fail, investigate and rerun as
117-
needed.
118-
- Note the **run ID** of the successful tag-triggered run. The release
119-
workflow can auto-detect it from the tag, but you can also provide it
120-
explicitly.
117+
- **All CI tests on `main` should already be green.** If any fail, fix them
118+
before tagging or release will be blocked.
121119

122120
---
123121

@@ -129,9 +127,8 @@ publish to TestPyPI, then publish the same wheel set to PyPI.
129127
1. Go to **Actions > CI: Release** and run the workflow with:
130128
- **Component**: `cuda-core`
131129
- **The release git tag**: `cuda-core-v0.6.0`
132-
133-
The workflow automatically looks up the successful tag-triggered CI run
134-
for the selected release tag.
130+
The workflow builds the release artifacts directly from the selected tag
131+
after verifying that the tagged commit already passed `CI` on `main`.
135132

136133
2. Wait for the workflow to complete. It will:
137134
- publish the selected wheels to TestPyPI

0 commit comments

Comments
 (0)