This document describes some instructions for maintainers. Other contributors and users need not be concerned with this material.
When setting up the repository on GitHub, configure the following settings:
- Under
General→Pull Requests, enableAutomatically delete head branches. - Under
Secrets and variables:- Under
Actions, add the following repository secrets with appropriate values:CRATES_IO_TOKENDOCKER_PASSWORD
- Under
Dependabot, add theDOCKER_PASSWORDrepository secret from above.
- Under
- Under
Branches, clickAdd a branch rulesetand configure it as follows:- For the ruleset name, you can use the name of the branch:
main. - Set
Enforcement statustoActive - Under
Targets→Target branches, clickAdd targetand selectInclude default branchfrom the dropdown menu. - Under
Rules→Branch rules, checkRequire status checks to passand configure it as follows before clicking theCreatebutton:- Enable
Require branches to be up to date before merging - Click the
Add checksbutton and add the following (you may need to use the search box to find them):Build for LinuxBuild for WindowsBuild for macOSInstall on UbuntuInstall on macOSPublish a release if applicable
- Enable
- For the ruleset name, you can use the name of the branch:
Releasing a new version is a three-step process:
- Bump the version in
[file:Cargo.toml], runcargo buildto update[file:Cargo.lock], and update[file:CHANGELOG.md]with information about the new version. Ship those changes as a single commit. - Once the GitHub workflow has finished on the
mainbranch, the installation script will begin installing the new release by default. Update therevin the example pre-commit configuration in[file:README.md]to point to the new version. - Create a pull request in the
Homebrew/homebrew-corerepository on GitHub to bump the version in this file.