fix(deploy): 修复 Host Updater Compose 项目隔离
This commit is contained in:
24
.github/workflows/publish-images.yml
vendored
24
.github/workflows/publish-images.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user