Skip to content

build: simplify releases to one command - #181

Merged
soulteary merged 2 commits into
mainfrom
fix/simplify-release
Sep 6, 2026
Merged

soulteary merged 2 commits into
mainfrom
fix/simplify-release

Conversation

@soulteary

Copy link
Copy Markdown
Owner

Summary

  • add scripts/release.sh so a maintainer publishes with one command: ./scripts/release.sh 7.3.0
  • keep local validation Git-only: clean main, exact origin/main, unused semantic-version tag, and current version references
  • remove local Go, GoReleaser, MkDocs, Python, and GitHub CLI requirements
  • move race tests, strict documentation build, and GoReleaser v2.18.0 configuration validation into a side-effect-free Release CI preflight job
  • require preflight to pass before registry login or GoReleaser publishing
  • retain the retry-safe publish -> attest -> verify boundary and refuse to publish over an existing GitHub Release
  • require the maintainer to type the exact version before creating and pushing only that annotated tag
  • document the one-command path, CI order, retry boundaries, and local tag push recovery in English and Chinese

Why

The previous local preflight stopped successively when mkdocs and then goreleaser were not installed. Those build tools are already pinned by Actions and should not be workstation release dependencies.

New release command

./scripts/release.sh 7.3.0

The script does not create a GitHub Release itself. It pushes exactly refs/tags/7.3.0; the tag-only workflow owns all build and publishing side effects.

No 7.3.0 tag or Release is created by this PR.

Validation

  • end-to-end temporary Git remote test: incorrect confirmation created no tag; correct confirmation created and pushed only 7.3.0; an unrelated local tag was not pushed
  • go test .
  • Actionlint v1.7.7
  • GoReleaser v2.18.0 check
  • mkdocs build --strict
  • bash -n scripts/release-preflight.sh scripts/release.sh
  • git diff --check

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-06T15:01:42.469993Z bc97acd Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 97dbb088ac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/build.yml Resolved
Comment thread .github/workflows/build.yml Resolved
@soulteary

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: bc97acd465

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@soulteary
soulteary merged commit 3f9759f into main Sep 6, 2026
11 checks passed
@soulteary
soulteary deleted the fix/simplify-release branch September 6, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant