Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(ci): redeploy docs after package publishing

t8y24089a2de7acf
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 6c498d0f24..5493095096 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -4,6 +4,9 @@ on:
push:
branches: [main]
paths: ['docs/**']
+ workflow_run:
+ workflows: ['Publish Packages']
+ types: [completed]
workflow_dispatch:
permissions:
@@ -16,6 +19,7 @@ concurrency:
jobs:
build:
+ if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
diff --git a/packages/app-tests/docsReleaseIntegration.test.ts b/packages/app-tests/docsReleaseIntegration.test.ts
index 96231d9547..26fe977201 100644
--- a/packages/app-tests/docsReleaseIntegration.test.ts
+++ b/packages/app-tests/docsReleaseIntegration.test.ts
@@ -57,11 +57,12 @@ test("legacy docs changelog pages do not keep stale release entries", () => {
assert.match(cn, /\/cn\/changelog/);
});
-test("docs deploy does not rerun just to refresh R2 changelog data", () => {
+test("docs deploy reruns after package publishing refreshes latest release data", () => {
const source = readFileSync(".github/workflows/docs.yml", "utf8");
- assert.equal(source.includes("workflow_run:"), false);
- assert.equal(source.includes("Sync Changelog to R2"), false);
+ assert.match(source, /workflow_run:/);
+ assert.match(source, /workflows: \['Publish Packages'\]/);
+ assert.match(source, /github\.event\.workflow_run\.conclusion == 'success'/);
});
test("changelog sync does not configure bucket-level R2 CORS during upload", () => {