Releasing memex #
This document describes how to cut a release. The release workflow at .github/workflows/release.yml runs on every v* tag, builds binaries for Linux, macOS (Intel + Apple Silicon), and Windows, attaches them with SHA-256 checksums to a draft GitHub release, and publishes the crate to crates.io.
Each release is itself tracked as a memex node so the graph captures what shipped alongside how it was built, and the release-prep PR satisfies memex-check naturally — no [skip memex] bypass needed.
Prerequisites (one-time) #
- A
CARGO_REGISTRY_TOKENsecret on the GitHub repo, scoped to publish thememexcrate on crates.io. Generate at https://crates.io/me and add via repo Settings → Secrets and variables → Actions.
Cutting a release #
-
Pick a version. memex follows SemVer: bump
MINORfor new features,PATCHfor bug fixes only. While the project is in0.x, MINOR bumps may include breaking changes. -
Branch from a clean
main:git checkout main && git pull git checkout -b release/v<version> -
Create the release node. Parent is the tip of
main(find viamemex node listormemex graph view):memex node create --parent <main-tip-id> --goal "Release v<version>" --tags release -
Bump the version. Edit
versioninCargo.toml, then runcargo buildonce soCargo.lockpicks up the new version. -
Roll the changelog. In
CHANGELOG.md, move entries from## [Unreleased]into a new dated section for the version, and update the version-comparison links at the bottom. -
Record release context on the node. At minimum:
memex node edit --artifact "Cargo.toml" memex node edit --artifact "CHANGELOG.md"If anything notable was deferred from this release, capture it as an open thread; if a scope decision was made (e.g. holding a feature back, choosing a version-bump tier), record it as a decision.
-
Verify locally:
cargo fmt --all -- --check cargo clippy --all-targets -- -D warnings cargo test --all-targets cargo package --no-verifyAll must pass.
-
Resolve the node:
memex node resolve -
Commit, push, open PR, merge. The release-prep commit includes the version bump, changelog roll, and the new node JSON:
git add Cargo.toml Cargo.lock CHANGELOG.md .memex/nodes/*.json git commit -m "chore: release v<version>" git push -u origin release/v<version> gh pr create --title "chore: release v<version>" --body "Release-prep PR. See node <short-id> for context."Once CI and
memex-checkgo green, merge the PR. -
Tag the merged commit:
git checkout main && git pull git tag v<version> git push origin v<version> -
Watch the release workflow in GitHub Actions. When it finishes:
- Confirm the draft GitHub release has all four target archives + checksums attached.
- Confirm
https://crates.io/crates/memexshows the new version. - Promote the draft release to published.