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。

refactor(ci): trigger 1Panel submission on release publish

t8y2302835bebb0b
diff --git a/.github/workflows/1panel-appstore.yml b/.github/workflows/1panel-appstore.yml
new file mode 100644
index 0000000000..9c3bce2469
--- /dev/null
+++ b/.github/workflows/1panel-appstore.yml
@@ -0,0 +1,64 @@
+name: 1Panel App Store
+
+on:
+ release:
+ types: [published, released]
+
+jobs:
+ submit:
+ runs-on: ubuntu-latest
+ if: ${{ !github.event.release.draft && !github.event.release.prerelease }}
+ env:
+ REPO_OWNER: t8y2
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Extract version from tag
+ id: version
+ run: |
+ VERSION="${{ github.event.release.tag_name }}"
+ VERSION="${VERSION#v}"
+ echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
+
+ - name: Submit to 1Panel App Store
+ env:
+ TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
+ GH_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
+ run: |
+ VERSION="${{ steps.version.outputs.version }}"
+
+ git clone --depth 1 \
+ "https://x-access-token:${TAP_GITHUB_TOKEN}@github.com/${REPO_OWNER}/appstore.git" \
+ appstore
+ cd appstore
+
+ APP_DIR="apps/dbx"
+ mkdir -p "${APP_DIR}/${VERSION}"
+
+ cp "${{ github.workspace }}/1panel/data.yml" "${APP_DIR}/data.yml"
+ cp "${{ github.workspace }}/1panel/README.md" "${APP_DIR}/README.md"
+ if [ -f "${{ github.workspace }}/1panel/logo.png" ]; then
+ cp "${{ github.workspace }}/1panel/logo.png" "${APP_DIR}/logo.png"
+ fi
+ cp -r "${{ github.workspace }}/1panel/latest/." "${APP_DIR}/${VERSION}/"
+
+ git config user.name "github-actions[bot]"
+ git config user.email "github-actions[bot]@users.noreply.github.com"
+
+ BRANCH="app/dbx-${VERSION}"
+ git checkout -b "${BRANCH}"
+ git add "${APP_DIR}"
+
+ if git diff --cached --quiet; then
+ echo "1Panel app store is already up to date."
+ else
+ git commit -m "feat(dbx): release ${VERSION}"
+ git push origin "${BRANCH}"
+ gh pr create \
+ --repo "1Panel-dev/appstore" \
+ --head "${REPO_OWNER}:${BRANCH}" \
+ --title "feat(dbx): release ${VERSION}" \
+ --body "Automated release of DBX v${VERSION}" \
+ --base master
+ echo "::notice::1Panel App Store PR created for ${VERSION}"
+ fi
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 6d9f3b8a50..258c22742c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -395,60 +395,6 @@ jobs:
echo "::notice::Scoop manifest updated to ${VERSION}"
fi
- panel-appstore:
- needs: publish
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
-
- - name: Extract version from tag
- id: version
- run: |
- VERSION="${GITHUB_REF_NAME#v}"
- echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
-
- - name: Submit to 1Panel App Store
- env:
- TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
- run: |
- VERSION="${{ steps.version.outputs.version }}"
-
- git clone --depth 1 \
- "https://x-access-token:${TAP_GITHUB_TOKEN}@github.com/${REPO_OWNER}/appstore.git" \
- appstore
- cd appstore
-
- APP_DIR="apps/dbx"
- mkdir -p "${APP_DIR}/${VERSION}"
-
- cp "${{ github.workspace }}/1panel/data.yml" "${APP_DIR}/data.yml"
- cp "${{ github.workspace }}/1panel/README.md" "${APP_DIR}/README.md"
- if [ -f "${{ github.workspace }}/1panel/logo.png" ]; then
- cp "${{ github.workspace }}/1panel/logo.png" "${APP_DIR}/logo.png"
- fi
- cp -r "${{ github.workspace }}/1panel/latest/." "${APP_DIR}/${VERSION}/"
-
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
-
- BRANCH="app/dbx-${VERSION}"
- git checkout -b "${BRANCH}"
- git add "${APP_DIR}"
-
- if git diff --cached --quiet; then
- echo "1Panel app store is already up to date."
- else
- git commit -m "feat(dbx): release ${VERSION}"
- git push origin "${BRANCH}"
- gh pr create \
- --repo "1Panel-dev/appstore" \
- --head "${REPO_OWNER}:${BRANCH}" \
- --title "feat(dbx): release ${VERSION}" \
- --body "Automated release of DBX v${VERSION}" \
- --base master
- echo "::notice::1Panel App Store PR created for ${VERSION}"
- fi
-
docker:
runs-on: ubuntu-latest
strategy: