This document is for LightGBM maintainers.
Create a pull request into master which prepares the source code for release.
Copy the description and checklist from the previous release PR (for example: #6796).
This should usually also include a checklist of other issues and PRs that should be completed for the release, and the PR should be used to discuss what makes it into the release.
Once the PR is approved, merge it.
Do not merge any other PRs into master until the rest of the release is complete.
Wait for all CI runs triggered by the merge to master to complete successfully.
These runs build and test the official artifacts that will be attached to the GitHub release and published to package managers.
Navigate to https://github.com/lightgbm-org/LightGBM/releases.
Click "edit" on the draft release that release-drafter has created there.
- update the tag and release title to match the version of LightGBM, in the format
v{major}.{minor}.{patch} - ensure that tag points at the commit on
mastercreated by merging the release PR
When you're satisfied with the state of the release, click "Publish release".
After creating a release, run the following from the root of the repo to populate it with artifacts.
# download all artifacts to a local directory
./.ci/downloads-artifacts.sh ${COMMIT_ID}
# attach them to the GitHub release
gh release upload \
--repo lightgbm-org/LightGBM \
"${TAG}" \
./release-artifacts/*Where:
COMMIT_ID= full commit hash of the commit onmastercorresponding to the releaseTAG= the tag for the release (e.g.v4.6.0)
These include things like publishing to package managers, updating build configs for repackagers like conda-forge, and many other steps.
See the release checklist on the PR for details.