NGINX UI Release
Use this workflow for NGINX UI releases from the repository root.
Preconditions
- Work from the
devbranch. - Inspect
git status --short --branchbefore changing files. - If the user asks to commit existing workspace changes first, inspect recent commit style and commit that work separately before release prep.
- Keep staging explicit. Do not include unrelated local changes.
- Treat
release-notes-vX.Y.Z.mdas a temporary local release artifact, not a committed file.
Version Preparation
- Run
./version.shoutside the sandbox when possible. It updatesapp/package.json, runs the frontend build, and refreshes generated artifacts that can require network access. - Enter the release version as
vX.Y.Zwhen prompted and confirm it. - Check the generated diff with
git status --shortandgit diff --stat. - Commit only version-preparation artifacts with:
git add <version-prep-files>
git commit -m "chore: prepare vX.Y.Z"
Do not commit release-notes-vX.Y.Z.md.
Release Notes
Create release-notes-vX.Y.Z.md in the repository root using exactly these sections:
## Features
- <User-facing feature summary> by @<contributor> ([<short-hash>](https://github.com/0xJacky/nginx-ui/commit/<full-sha>))
## Bug Fixes
- <User-facing fix summary> by @<contributor> ([<short-hash>](https://github.com/0xJacky/nginx-ui/commit/<full-sha>))
## 中文更新日志
### 新功能
- <面向用户的功能摘要> by @<contributor> ([<short-hash>](https://github.com/0xJacky/nginx-ui/commit/<full-sha>))
### 问题修复
- <面向用户的修复摘要> by @<contributor> ([<short-hash>](https://github.com/0xJacky/nginx-ui/commit/<full-sha>))
## Contributors
@handle
Guidelines:
- Base the notes on the verified range from the previous release tag to
HEAD. - Every actual change bullet must include both the verified contributor's
@handleand a linked short commit hash, even when a PR link is also included. TheContributorssection does not replace per-change attribution. - Resolve handles from the merged PR author and verified co-authors, or the GitHub-linked commit author for direct commits. Do not automatically credit the merger or committer, and never infer a handle from a display name or email. Resolve missing attribution before finalizing the notes; if it cannot be verified, ask the user for the handle or an explicit attribution exception.
- Use a commit that implements the summarized change and belongs to the verified release range. For squash merges, use the resulting squash commit; for rebased or cherry-picked changes, use the commit shipped in this repository. Never use the release-prep commit as a substitute.
- Display a unique abbreviated SHA, starting at 8 characters and extending it if ambiguous, and link it to the full commit SHA on GitHub.
- Write concise summaries of notable user-facing outcomes rather than copying the raw commit log. Group commits only when they describe one coherent change; retain all relevant contributor handles and the linked hashes needed to substantiate the summary. Split unrelated changes into separate bullets.
- List verified release contributors once each in
Contributors, including everyone credited inline. - If a change section is empty, use
- None.; this sentinel needs no contributor or hash. - Do not include test status unless the user explicitly asks for it.
Chinese changelog (## 中文更新日志):
- Write it after the English notes are final, as a one-to-one translation:
### 新功能mirrors## Featuresand### 问题修复mirrors## Bug Fixes, with the same bullets in the same order. Do not add, drop, merge, or split bullets relative to the English sections. - Keep each bullet's attribution suffix byte-identical to its English counterpart: the same
by @handlelist and the same linked short hashes. - Translate the meaning, not word by word, into natural written Chinese. Keep product names, protocols, identifiers, and literals in their original form (for example NGINX UI, OIDC, HTTP-01, LXC, advisory IDs such as
GHSA-..., and anything in backticks like setting names, paths, and commands). Follow the terminology used in thedocs/zh_CNguides where it exists. - If an English section is
- None., its Chinese counterpart is- 无。. ## Contributorsstays a single shared section at the end; do not duplicate it in Chinese.
Before finalizing, check every change bullet for accurate attribution, a resolving commit link, and membership in the release range, and confirm the Chinese sections have the same bullet count, order, and attribution suffixes as the English sections. Reuse the same reviewed notes for the tag annotation and GitHub Release body.
References: Keep a Changelog for curated, grouped summaries and GitHub release notes for contributor credit and change traceability. Per-change handles and short hashes are this project's required format.
Validation
./version.shalready runs the frontend build and Go generation.- By default, run lightweight checks such as
git diff --check. - Run broader tests only when appropriate for the release scope or when the user requests them. If the user says to skip tests, do not keep trying to run them.
- If local tests are affected by a parent Go workspace, use repo-isolated mode such as
GOWORK=offand a writableGOCACHE.
Avira Pre-Publication Gate
Complete this gate after the release-prep commit and before creating or pushing the release tag or publishing the GitHub Release:
- Record the exact release-candidate commit from
git rev-parse HEAD. - After explicit publication authorization, push only
devso theBuildworkflow can produce the Windows amd64 artifact from that exact commit. Do not push the release tag yet. - Wait for the
Buildworkflow for the candidate commit to succeed. Download its Windows amd64 artifact and verify that it contains the expectednginx-ui.exe. - Record the executable SHA-256. Archive only
nginx-ui.exein a password-protected ZIP under Avira's 50 MB limit using passwordinfected. - Immediately before transmitting the archive and contact details, obtain the required external-submission confirmation. Submit the sample to Avira VirusLab as
Suspected False Positive (Not Malware)with the planned version, candidate commit, executable hash, source URL, and release URL. - Stop until Avira explicitly reports
Clean. A pending result or detection leaves the release tag and GitHub Release unpublished. - Recheck that
HEADandorigin/devstill resolve to the scanned candidate commit. Any commit change invalidates the result and requires a new artifact and scan.
The pre-publication artifact is content-level evidence, not guaranteed byte-for-byte proof of the final GitHub Release asset because the build embeds settings.buildTime. After publication, record the exact published Windows ZIP and extracted EXE SHA-256 values. If WinGet flags the final executable, submit that exact EXE to Avira before requesting an ESRP rerun.
Tag, Push, And Publish
Only after the Avira pre-publication result is Clean and the candidate commit is unchanged:
git -c tag.gpgSign=false tag -a vX.Y.Z -F release-notes-vX.Y.Z.md
git push origin vX.Y.Z
gh release create vX.Y.Z --verify-tag --title vX.Y.Z -F release-notes-vX.Y.Z.md --discussion-category Announcements
Notes:
- Use
git -c tag.gpgSign=false tag -a ...when local GPG signing blocks tag creation. - The GitHub Release command is expected to create the matching Announcements discussion.
- Verify publication with
gh release view vX.Y.Zand, if needed, inspect recent Discussions in theAnnouncementscategory. - Download the final
nginx-ui-windows-64.zip, record its SHA-256, extractnginx-ui.exe, and record the executable SHA-256. - After a successful release, leave the release-note markdown untracked unless the user asks to delete it.
Homebrew Tap
The update-homebrew job of the release Build run opens a PR titled nginx-ui X.Y.Z (branch update-nginx-ui-X.Y.Z) in 0xJacky/homebrew-tools. It is not merged automatically, so merge it as part of every release once that job has succeeded:
- Find the PR with
gh pr list --repo 0xJacky/homebrew-tools --state open. - Confirm it only changes
Formula/nginx-ui.rb, bothtest-botchecks passed, and it isMERGEABLE. - Check that each of the four formula
sha256values matches thedigestof the asset it points to (gh api repos/0xJacky/nginx-ui/releases/tags/vX.Y.Z --jq '.assets[] | "\(.digest) \(.name)"'). - Merge with a merge commit, as earlier tap PRs were, and delete the branch:
gh pr merge <number> --repo 0xJacky/homebrew-tools --merge --delete-branch
If test-bot fails, reproduce it locally against the tapped checkout (brew style 0xjacky/tools, brew readall, brew audit --tap=0xjacky/tools) and fix the formula template in nginx-ui's release workflow rather than editing the tap by hand.
RainYun Cloud App Publication
RainYun is a downstream distribution phase. Start it only after the GitHub Release is final, the required release workflows have completed, and the versioned Docker image is available for the target RainYun architecture. Do not make RainYun a prerequisite for publishing the GitHub Release.
When the release request includes RainYun or store publication, read and follow references/rainyun.md. Its template contract, deployment proof, external-action boundaries, billing confirmation, CAPTCHA handoff, store-state readback, and README promotion requirements are release gates for this phase.
A generic GitHub release authorization does not by itself authorize RainYun template changes, a potentially billed test deployment, or application submission. Obtain the required RainYun scope before external mutations and obtain action-time confirmation immediately before the final install/deploy control.