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(release): add manual cnb asset sync

t8y294535b8d7294
diff --git a/.github/workflows/sync-cnb-release-assets.yml b/.github/workflows/sync-cnb-release-assets.yml
new file mode 100644
index 0000000000..7aa9d7dea6
--- /dev/null
+++ b/.github/workflows/sync-cnb-release-assets.yml
@@ -0,0 +1,38 @@
+name: Sync CNB Release Assets
+
+on:
+ workflow_dispatch:
+ inputs:
+ tag:
+ description: "Release tag to sync"
+ required: true
+ type: string
+
+permissions:
+ contents: read
+
+env:
+ CNB_REPOSITORY: "dbxio.com/dbx"
+
+jobs:
+ sync-release-to-cnb:
+ name: Sync release to CNB
+ runs-on: ubuntu-latest
+ steps:
+ - name: Sync release assets to CNB
+ env:
+ TAG_NAME: ${{ inputs.tag }}
+ GITHUB_REPOSITORY: ${{ github.repository }}
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ CNB_TOKEN: ${{ secrets.CNB_TOKEN }}
+ run: |
+ set -euo pipefail
+
+ wget -q https://cnb.cool/znb/mpgrm/-/releases/download/v0.1.0/mpgrm_linux_amd64.tar.gz
+ tar -xf mpgrm_linux_amd64.tar.gz
+ chmod +x mpgrm
+
+ ./mpgrm releases sync \
+ --repo "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" \
+ --target-repo "https://cnb:${CNB_TOKEN}@cnb.cool/${CNB_REPOSITORY}.git" \
+ --tags "${TAG_NAME}"