You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.9 KiB
2.9 KiB
How to release the specification
The whole specification is now released as a single unit/artifact. This document is the process for releasing the specification and a description of how the (public) machinery works.
Prerequisites / preparation
First, can we even release the spec? This stage is mostly preperation work needed to ensure a consistent and reliable specification.
- Ensure
main
is committed with all the spec changes you expect to be there. - Review the changelog to look for typos, wording inconsistencies, or lines which can be merged. For example, "Fix typos" and "Fix spelling" can be condensed to "Fix various typos throughout the specification".
- Do a quick skim to ensure changelogs reference the MSCs which brought the changes in. They should be linked to the GitHub MSC PR (not the markdown document).
The release
Assuming the preparation work is complete, all that remains is the actual specification
release. This is done directly on main
, though local branching for safety is also
welcome.
- Update the
params.version
section ofconfig.toml
to use the following template:[params.version] status = "stable" current_version_url = "https://spec.matrix.org/latest" # This will be the spec version you're releasing. If that's v1.2, then `major = "1"` # and `minor = "2"` major = "1" minor = "2" # Today's date. Please use the format implied here for consistency. release_date = "October 01, 2021"
- Commit the changes.
- Tag
main
with the spec release with a format ofv1.2
(if releasing Matrix 1.2). - Push
main
and the tag. - GitHub Actions will run its build steps. Wait until these are successful. If fixes need to be made to repair the pipeline or spec build, delete and re-tag the release.
- Generate the changelog. This is done after the tagging to ensure the rendered
changelog makes sense.
- Activate your python virtual environment.
- Run
./scripts/generate-changelog.sh v1.2 "October 01, 2021"
(using the correct version number and samerelease_date
format from the hugo config). - Commit the result.
- Create a new release on GitHub from the newly created tag.
- The title should be just "v1.2" (for example).
- The description should be a copy/paste of the changelog. The generated changelog
will be at
content/partials/changelogs/v1.2.md
- copy/paste verbatim. - Upload the artifacts of the GitHub Actions build for the release to the GitHub release as artifacts themselves. This should be the tarball that got deployed to spec.matrix.org.
- Commit a reversion to
params.version
ofconfig.toml
onmain
:[params.version] status = "unstable" current_version_url = "https://spec.matrix.org/latest" # major = "1" # minor = "2" # release_date = "October 01, 2021"
- Push pending commits and ensure the unstable spec updates accordingly from the GitHub Actions pipeline.