aboutsummaryrefslogtreecommitdiff
path: root/AGENTS.md
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-31 22:44:55 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-31 22:44:55 +0300
commit018cbfb84ad9516be3121d2264c61d9a4a3aebc1 (patch)
tree9f69ac05520a669bb14092314cd35c331310f0da /AGENTS.md
parente91b8abfcc5ca2bb61353e840e5f7bfcb0c913d9 (diff)
chore: finalize release docs and harden release flow
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 60d9479f..4d27c244 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -76,10 +76,13 @@ Default release flow:
```bash
just check
-just release 0.x.y
+just release-prepare 0.x.y
+just release-publish 0.x.y
```
-`just release 0.x.y` prepares the changelog entry, bumps `Cargo.toml`, runs tests, commits, tags, and pushes. GitHub Actions builds the binaries after the tag is pushed, creates the GitHub release, uploads all four binary assets, then updates `website/latest.json` on `master` automatically.
+`just release-prepare 0.x.y` prepares the changelog entry, bumps `Cargo.toml`, updates `Cargo.lock`, refreshes `nix/package.nix` `cargoHash`, runs tests, and commits the release. `just release-publish 0.x.y` verifies the prepared clean tree, rechecks the committed `cargoHash` without patching, pushes the release commit to `origin/master` if needed, then tags and pushes the tag. `just release 0.x.y` runs both steps. GitHub Actions builds the binaries after the tag is pushed, creates the GitHub release, uploads all four binary assets, then updates `website/latest.json` on `master` automatically.
+
+If the release will change `Cargo.lock` or the package version, refresh `nix/package.nix` after the release version bump and before tagging. `just release-prepare` runs `just refresh-nix-cargo-hash`, which forces `cargoHash = lib.fakeHash`, captures the `got:` hash from Nix, writes it back to `nix/package.nix`, and reruns the Nix flake checks. A stale hash fails both the `Nix` workflow and the release workflow's `flake-check` job with a fixed-output derivation mismatch.
The release workflow must publish these four assets: