See https://github.com/0xMiden/miden-debug/blob/next/.github/workflows/release.yml
The workflow:
- The merge from the nexttomaintriggers the release-plz and creates a release PR;
- When the release PR is merged the git tag is set and artifacts are published under the GH release;
- The mainbranch is merged back to thenextbranch (manual step for now, look into automating it).