fix(deploy): 修复 Host Updater Compose 项目隔离

This commit is contained in:
ddcat666
2026-09-29 12:26:02 +08:00
parent 736070cf64
commit 22f8d25d26
3 changed files with 103 additions and 13 deletions

View File

@@ -207,12 +207,18 @@ jobs:
if [[ "$GITHUB_REF_NAME" == *-* || "$GITHUB_REF_NAME" == *.rc* || "$GITHUB_REF_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
prerelease_args+=(--prerelease)
fi
gh release create "$GITHUB_REF_NAME" \
dist/open-ai-canvas-host-updater-linux-amd64 \
dist/open-ai-canvas-host-updater-linux-arm64 \
dist/SHA256SUMS \
docker-compose.deploy.yml \
--verify-tag \
--title "$GITHUB_REF_NAME" \
--notes-file dist/RELEASE_NOTES.md \
"${prerelease_args[@]}"
assets=(
dist/open-ai-canvas-host-updater-linux-amd64
dist/open-ai-canvas-host-updater-linux-arm64
dist/SHA256SUMS
docker-compose.deploy.yml
)
if gh release view "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
gh release upload "$GITHUB_REF_NAME" "${assets[@]}" --clobber
else
gh release create "$GITHUB_REF_NAME" "${assets[@]}" \
--verify-tag \
--title "$GITHUB_REF_NAME" \
--notes-file dist/RELEASE_NOTES.md \
"${prerelease_args[@]}"
fi