From f556e9af0189b58507fa3abeca45ea458442bf36 Mon Sep 17 00:00:00 2001 From: yunyingk Date: Tue, 25 Aug 2026 17:13:03 +0800 Subject: [PATCH] Update README.md with comprehensive One-Command Version Bump and Gitea install guide --- README.md | 68 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 51 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 56cb104..4388943 100644 --- a/README.md +++ b/README.md @@ -11,10 +11,14 @@ Seal-native enterprise pages can be added with a Seal Bearer token. The older `d No Node.js, Bun, or external runtime required. Run the one-line installer for macOS and Linux: ```bash +# 国内高速安装(Gitea 镜像源,免代理、秒级完成) +curl -fsSL https://git.ying-qing.cn/gitea/seal-home/raw/branch/master/scripts/install.sh | bash + +# Global / GitHub Direct curl -fsSL https://raw.githubusercontent.com/yunyingk/seal-home/master/scripts/install.sh | bash ``` -Or download the native binary directly from [GitHub Releases](https://github.com/yunyingk/seal-home/releases/latest): +Or download the native binary directly from [GitHub Releases](https://github.com/yunyingk/seal-home/releases/latest) or [Gitea Releases](https://git.ying-qing.cn/gitea/seal-home/releases): - **macOS (Apple Silicon)**: `curl -fsSL https://github.com/yunyingk/seal-home/releases/latest/download/seal-home-darwin-arm64 -o /usr/local/bin/seal-home && chmod +x /usr/local/bin/seal-home` - **macOS (Intel)**: `curl -fsSL https://github.com/yunyingk/seal-home/releases/latest/download/seal-home-darwin-x64 -o /usr/local/bin/seal-home && chmod +x /usr/local/bin/seal-home` @@ -291,21 +295,51 @@ When `_langfuseTraceId` exists, downstream tools should fetch the trace directly ## Release & Publishing -To release a new version of `seal-home`: +The project includes automated version bumping and CI dual-publishing workflows to simplify releases. -1. **Version Bump Checklist**: - - Run `bun run bump ` (automatically updates `package.json`, `.zcode-plugin/plugin.json`, `skills/seal-home/SKILL.md`, `openapi/openapi.yaml`, and bundles `dist/`). - - Update `CHANGELOG.md` with release notes and highlights. - - Run verification tests: - ```bash - bun test && bun run check - ``` -2. **Tag & Publish**: - - Commit changes and create an annotated Git tag with release notes: - ```bash - git commit -am "Release vX.Y.Z: ..." - git tag -a vX.Y.Z -m "🚀 版本更新文案与主要特性说明" - git push origin master --tags && git push home master --tags - ``` - - GitHub Actions will automatically extract your tag annotation message, append the auto-generated commit list via `--generate-notes`, cross-compile all 5 target standalone binaries in under 60 seconds, and publish the release to [GitHub Releases](https://github.com/yunyingk/seal-home/releases). +### 1. One-Command Version Bump (`bun run bump`) + +Use `bun run bump` to automatically synchronize version numbers across all manifests, OpenAPI specs, and bundled assets in one step: + +```bash +# Bump patch version (e.g. 0.8.1 -> 0.8.2) +bun run bump patch + +# Bump minor version (e.g. 0.8.1 -> 0.9.0) +bun run bump minor + +# Bump major version (e.g. 0.8.1 -> 1.0.0) +bun run bump major + +# Or specify an exact target version +bun run bump 0.8.5 +``` + +**What `bun run bump` handles automatically:** +1. Updates `"version"` in `package.json`; +2. Updates `"version"` in `.zcode-plugin/plugin.json`; +3. Updates `version`, `short-description`, and title in `skills/seal-home/SKILL.md`; +4. Updates `version` in `openapi/openapi.yaml`; +5. Rebuilds OpenAPI spec (`dist/openapi.json`) and MCP plugin bundle (`dist/mcp/server.js`); +6. Prints the exact `git commit` and `git tag` commands ready to execute. + +### 2. Tag & Dual-Publish Workflow + +1. Update `CHANGELOG.md` with the new version notes; +2. Run test suite: + ```bash + bun test && bun run check + ``` +3. Commit and push the annotated tag: + ```bash + git commit -am "Release vX.Y.Z: ..." + git tag -a vX.Y.Z -m "🚀 版本更新文案与主要特性说明" + git push origin master --tags && git push home master --tags + ``` + +**CI Automation Pipeline:** +- GitHub Actions triggers automatically upon pushing a `v*` tag; +- Cross-compiles standalone binaries for 5 target platforms (macOS Apple Silicon/Intel, Linux x86_64/ARM64, Windows x64) in under 60 seconds; +- Automatically extracts your Git tag annotation message and appends commit changelogs (`--generate-notes`); +- Simultaneously publishes release packages to **[GitHub Releases](https://github.com/yunyingk/seal-home/releases)** and **[Gitea Releases](https://git.ying-qing.cn/gitea/seal-home/releases)** for global and mainland China high-speed downloads.