Open
Description
Currently, to do releases we have to:
- bump the version number in
Cargo.toml
tox.y.z
and apply changesetscargo xtask changelog --release vx.y.z
.cargo release x.y.z --execute
- Create and merge the pr
- Create and push tag vx.y.z on that merge commit from bors when merged.
I'd like to streamline this process to only two steps
cargo release x.y.z --execute
- submit pr and merge
- ???
- profit!! (CI creates tag and eventually publishes to crates.io)
There is also an issue with releasing versions behind origin:main, this could be improved by allowing the same process for those changes, ie:
- Create branch vx.y.z based on the most adjacent tag. Publish this branch (this shouldn't trigger ci)
cargo release --execute x.y.z
- submit pr to merge changes into x.y.z and merge
- ci creates tag and eventually publishes to crates.io
This process doesn't work today, because the ci for publishing is only triggered on published tags.
Github doesn't allow the default github token in workflows to trigger other workflows except for workflows on workflow_dispatch
and repository_dispatch
, to circumvent this, it's possible to use a deploy key (which I've already added to this repo, secrets.COMMIT_KEY
)