Files
Liger-Kernel/.github/workflows
91e51dfd9c Allow manual publishing of Liger Kernel releases (#1504)
## Summary

Allow the Python `liger-kernel` wheel to be published from corrected
`main` without creating another GitHub release event or changing the
existing release tag.

- Add `workflow_dispatch` with a boolean `publish` input, defaulting to
`false`.
- Preserve publication on release events; manual runs upload only when
`publish=true`.
- Reject release tags that disagree with the source project version
before building.
- Check distribution metadata and the wheel version before upload.

After merge, publish the corrected 0.8.4 source with:

```bash
gh workflow run publish-release.yml --repo linkedin/Liger-Kernel --ref main -f publish=true
```

## Validation

Built the 0.8.4 sdist and wheel, passed `twine check`, exercised the
manual and matching-tag cases, rejected a mismatched tag, and ran the
wheel metadata check.

This PR changes only the publishing workflow. Experimental-package
changes are intentionally excluded at the maintainer's request;
distribution metadata validation does not claim that all runtime imports
work.

Co-authored-by: kolehma8 <[email protected]>
Co-authored-by: Copilot <[email protected]>
2026-10-04 21:14:13 +00:00
..