Document the proven hk.cflmy.de CONNECT path and ship push-via-hk-jump.py so flaky Clash/reverse-proxy no longer blocks releases. Co-authored-by: Cursor <cursoragent@cursor.com>
7.9 KiB
name, description
| name | description |
|---|---|
| marqdo-release | Run a full Marqdo product release: detect latest version and ask the user for the next tag, update CHANGELOG/README/skills/public docs, bump Cargo versions, sync VS Code extension on branch vscode-extension when needed, build or trigger install assets (CLI, stdlib, ext, public zip, VSIX, wasm notes), push tag, publish GitHub Release with detailed notes, and recover from network failures via proxy or HK SSH jump (scripts/push-via-hk-jump.py). Use when the user asks to release, cut a version, publish vX.Y.Z, ship a GitHub release, 发版, 发布新版本, or tag marqdo. |
Marqdo release
Canonical release playbook for cflmy/marqdo. Read this skill before tagging or uploading assets. Details: reference.md.
Hard rules
- Never invent the next version. Detect current versions → stop and ask the user for the next SemVer (
X.Y.Z). Do not proceed until they confirm. - Never force-push
main/ tags. Never--no-verifyunless the user explicitly orders it. - Never commit
vscode-extension/onmain(gitignored). Extension source lives only on branchvscode-extension. Seedoc/design/vscode-extension-commit.md. - Do not release from a dirty tree (except intentional release commits you create in this flow).
- Tag format is always
vX.Y.Zmatching rootCargo.tomlversion = "X.Y.Z". - Prefer tag push → GitHub Actions (
.github/workflows/release.yml) for Windows CLI + VSIX + zips. Local packaging is fallback / verification. - After network errors: apply reference.md § Proxy; retry; do not silently skip uploads. If GitHub stays unreachable but HK jump (
hk.cflmy.de) works, usescripts/push-via-hk-jump.py(Paramiko CONNECT) — see reference § HK SSH jump.
Defaults (after version is confirmed)
Unless the user overrides, apply these automatically — do not re-ask:
| Setting | Default |
|---|---|
Sync / bump vscode-extension to same VER |
yes |
Push main, create annotated tag, push tag immediately (trigger CI) |
yes |
| Release notes language | 中英双语 (Chinese first, then English section, or paired ZH/EN under each heading) |
| Skip VSIX | no |
| Docs-only release | no (full asset pipeline via CI) |
| Deploy gh-pages after release | no (only if user asks) |
Phase 0 asks only for the next version (and optional overrides). Example ask:
当前最新是 vA.B.C。请指定下一个版本号(如
0.3.2)。其余按默认:同步扩展、立刻打 tag 发布、中英双语说明。
Phase 0 — Detect versions (mandatory stop)
Run in repo root (parallel OK):
python3 .cursor/skills/marqdo-release/scripts/detect_version.py
# or: rg / git tag / gh release list — see reference.md
Report briefly, then ask only for the next SemVer (defaults above). Wait for confirmation. Normalize to VER=X.Y.Z and TAG=vX.Y.Z.
Phase 1 — Preflight
Copy and track:
Release progress:
- [ ] Phase 0: version confirmed by user (TAG=…)
- [ ] Phase 1: preflight green
- [ ] Phase 2: docs + version bumps committed
- [ ] Phase 3: extension branch (if needed)
- [ ] Phase 4: main pushed; tag created & pushed
- [ ] Phase 5: CI / assets / release notes verified
- [ ] Phase 6: post-release checks
Checks:
git statusclean or only release WIP you control.git checkout main && git pull --ff-only origin main.- Quick gate:
cargo test --test gold structure_hello(and any release-critical tests the user named). Full gold suite if time allows. CHANGELOG.mdhas meaningful Unreleased notes; if empty, draft fromgit log vLAST..HEAD --onelineand confirm with user.- Confirm no secrets in the commit (
*.env, credentials).
Phase 2 — Docs & version bumps (main)
Bump in lockstep:
| File | Change |
|---|---|
Cargo.toml |
version = "VER" |
crates/marqdo-wasm/Cargo.toml |
same VER |
CHANGELOG.md |
Move ## Unreleased → ## vVER — YYYY-MM-DD; leave fresh empty ## Unreleased |
README.md |
「现状 / 如何使用最新」version strings, checkout tag, release URL |
.cursor/skills/marqdo/SKILL.md |
Version-sensitive bullets if any (WASM/web status); keep rules accurate |
public/** |
User-facing tutorials if features shipped (welcome, features/*, extensions). Prefer small factual updates over rewrites |
doc/roadmap/*.md |
Mark shipped waves done if this release closes them |
.github/workflows/release.yml |
Update Highlights body template to this release (CI still uses hardcoded blurb—keep in sync) |
Public HTML: regenerate before packaging / pages deploy:
./scripts/build-public.sh
# outputs under public/ (gitignored HTML); used by release zip / gh-pages
Commit on main (HEREDOC message), e.g.:
release: vVER — <one-line highlight>
EOF
Push main: git push origin main (with proxy/all perms if needed; on persistent GitHub failure use reference § HK SSH jump).
Phase 3 — VS Code / Cursor extension
Default: always bump extension to VER on branch vscode-extension (skip only if user said so).
git fetch origin vscode-extension- Work on
vscode-extensionbranch (not main):- Bump
vscode-extension/package.jsonversiontoVER. - Update
engines/ CLI version hints in extension README if present. npm ci && npm run compile
- Bump
- Commit &
git push origin vscode-extension. - Return to
main. Do not addvscode-extension/to main.
Phase 4 — Tag & trigger CI
git tag -a "TAG" -m "TAG"
git push origin "TAG"
This runs .github/workflows/release.yml (Windows): CLI exe/zip, stdlib zip, ext zip, source zip, public zip, VSIX.
If tag push fails: reference.md § Proxy, retry once; then report.
Phase 5 — Release notes & assets
- Wait for Actions success:
gh run list --workflow=Release --limit 3/ open the run URL. - Ensure GitHub Release for
TAGexists with assets (workflow usessoftprops/action-gh-release). - Rewrite release body (workflow body is a stub) with 中英双语 — see reference.md § Notes template.
gh release edit TAG --notes-file …. - Include: Highlights, Breaking, Install (
ext add, plugins build), Downloads table, WASM (marqdo wasm build), links to CHANGELOG/README, extension branch note. - Optional Linux local extras (not required if CI green):
marqdo wasm buildsmoke; document in notes that wasm is built from source via CLI.
Local Windows fallback: scripts/release-full.ps1 -Tag TAG -Upload (see script header).
Phase 6 — Post-release
gh release view TAG— confirm assets + notes.git statusclean;mainsynced.- Tell user: release URL
https://github.com/cflmy/marqdo/releases/tag/TAG. - Optional:
./scripts/deploy-public.ps1/ pages workflow if user wants user-site refresh. - Open fresh
## Unreleasedalready done in Phase 2.
Failure matrix (short)
| Failure | Action |
|---|---|
gh / git TLS or Clash 7890 refused |
Unset bad proxy; required_permissions: ["all"]; see reference § Proxy |
GitHub blocked / proxy.cflmy.top push timeout |
HK SSH jump: scripts/push-via-hk-jump.py (ask user for HK password/key; never commit). See reference § HK SSH jump |
| Tag exists | Stop; ask user to bump or delete tag (no force on shared tags without explicit order) |
| CI red | Fix on main, move tag only if user explicitly allows delete+re-push tag |
| VSIX missing | Fetch vscode-extension, build locally, gh release upload TAG dist/*.vsix |
| Partial assets | Re-run workflow or upload missing files only |
Do not
- Ship without user-confirmed version.
- Hardcode release highlights only in Actions YAML and forget CHANGELOG.
- Commit
target/,dist/,*.wasm, orpublic/**/*.htmlunless project policy changes. - Merge extension tree into
main.