release(v0.3.35): sandbox upgrade guard, shell timezone i18n, and release notes

- Add validate_sandbox_compose check and compose snapshot backup/restore in deploy-lib.sh
- Show both git clone and non-git sync upgrade commands in sandbox page and settings card
- Gate standalone-to-sandbox warning in update modal to Docker non-sandbox mode only
- Add timezone-based zh/en auto-switching (with ARTEX_LANG override) across shell scripts
- Extract CHANGELOG.md section into GitHub Release notes and add v0.3.35 release notes
This commit is contained in:
ji ruo committed 2026-12-04 16:45:32 +08:00
1 parent 96a01bfeba
commit 659e43e91e
13 files changed
+738 -245

No files matched your search

+28 -5
View File
@@ -130,6 +130,9 @@ jobs:
GH_REPO: ${{ github.repository }}
RELEASE_TAG: ${{ needs.prepare.outputs.tag }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ needs.prepare.outputs.commit }}
- uses: actions/download-artifact@v4
with:
pattern: pkg-*
@@ -163,6 +166,30 @@ jobs:
cat /tmp/artex-release.err >&2
exit 1
fi
- name: Build release notes body
env:
DOCKER_IMAGE: ${{ vars.ARTEX_DOCKER_IMAGE }}
run: |
version="${RELEASE_TAG#v}"
changelog_section="$(awk -v prefix="## [${version}]" '
index($0, prefix) == 1 { found=1; next }
found && index($0, "## [") == 1 { exit }
found { print }
' CHANGELOG.md | sed -e '/./,$!d')"
{
if [ -n "$changelog_section" ]; then
printf '%s\n\n---\n\n' "$changelog_section"
fi
cat <<EOF
### Docker Hub 镜像(Linux AMD64 / ARM64)
- 控制面:\`${DOCKER_IMAGE}:${RELEASE_TAG}\`(同时提供 \`latest\`)
- 透明代理网关:\`${DOCKER_IMAGE}-gateway:${RELEASE_TAG}\`(同时提供 \`latest\`)
- 沙箱执行环境:\`${DOCKER_IMAGE}-sandbox:${RELEASE_TAG}\`(同时提供 \`latest\`)
程序包提供 Linux、macOS 的 AMD64 / ARM64 及 Windows AMD64,并附 \`SHA256SUMS\`。部署、容器沙箱升级与在线更新说明见本仓库 README。
EOF
} > /tmp/release-body.md
- uses: softprops/action-gh-release@v2
with:
tag_name: ${{ needs.prepare.outputs.tag }}
@@ -173,11 +200,7 @@ jobs:
dist/*.zip
dist/SHA256SUMS
generate_release_notes: true
body: |
Docker Hub 镜像:`${{ vars.ARTEX_DOCKER_IMAGE }}:${{ needs.prepare.outputs.tag }}`,同时提供 `latest`。
支持 Linux AMD64 / ARM64,Docker 会自动选择宿主机架构。
程序包提供 Linux、macOS 的 AMD64 / ARM64 及 Windows AMD64,并附 SHA256SUMS。
部署和在线更新说明见本仓库 README。
body_path: /tmp/release-body.md
- name: Publish complete release
run: gh release edit "$RELEASE_TAG" --draft=false --latest