You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[infra] publish rc to pypi as part of release process (#1449)
## Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax. For example
`Closes#123` indicates that this PR will close issue #123.
-->
- Closes#1409.
## What changes are included in this PR?
Changes
- Trigger `publish` workflow only by matching specific tag names
(`v<major>.<minor>.<patch>` or
`v<major>.<minor>.<patch>-rc.<release_candidate>`) instead of all tags
- Add a step in `pypi` workflow to again validate the tag name
- Edit `pypi` workflow to override the Cargo version for RC. This allows
us to upload to pypi as pre-release
<!--
Provide a summary of the modifications in this PR. List the main changes
such as new features, bug fixes, refactoring, or any other updates.
-->
## Are these changes tested?
<!--
Specify what test covers (unit test, integration test, etc.).
If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->
Yes, tested against personal fork.
Tested
- push invalid tag, i.e. `should-not-trigger`. ✅ does not trigger the
`publish` job
- push RC tag, i.e. `v0.6.0-rc.1`. ✅ triggers [`publish`
job](https://github.com/kevinjqliu/iceberg-rust/actions/runs/15815922351)
and [`pypi`
job](https://github.com/kevinjqliu/iceberg-rust/actions/runs/15815944806)
- push release tag, i.e. `v0.6.0`. ✅ triggers [`publish`
job](https://github.com/kevinjqliu/iceberg-rust/actions/runs/15815922462)
and [`pypi`
job](https://github.com/kevinjqliu/iceberg-rust/actions/runs/15815944240)
For both `v0.6.0-rc.1` and `v0.6.0`, verified the generated artifacts
(`wheels-sdist` and `wheels-ubuntu-latest-armv7l`) locally for the
correctly set python version number.
0 commit comments