ci: migrated release trigger from tag-push to branch-push

- Removed `tags: ["v*"]` trigger; release now fires from the single atomic `main` push that carries the tag.
- Replaced `gate.skip` with `gate.is-release` and `gate.release-tag` so downstream jobs detect the tag via `git tag --points-at HEAD`.
- Passed `release-tag` explicitly to release steps (gh-release, curl, release notes) since `github.ref` is now `refs/heads/main`, not the tag.
- Fixed rust-cache key collision on macOS x64 by setting `RUSTFLAGS` (target-cpu) before cache restore and including the native source hash in the shared key.
This commit is contained in:
can1357
2026-05-31 02:33:19 +02:00
parent 1d930a527d
commit 71fe258320
3 changed files with 101 additions and 59 deletions
+2 -2
View File
@@ -362,8 +362,8 @@ async function cmdRelease(version: string): Promise<void> {
} else {
console.log("\nTo retry after fixing (repeat until CI passes):");
console.log(" git commit -m \"fix: <brief description>\"");
console.log(" git push origin main");
console.log(` git tag -f v${version} && git push origin v${version} --force`);
console.log(` git tag -f v${version}`);
console.log(` git push --atomic origin main +refs/tags/v${version}`);
console.log(" bun scripts/release.ts watch");
process.exit(1);
}