refactor: separate plugin repositories and release-based catalog

This commit is contained in:
2026-09-11 10:06:30 +08:00
parent 07174e35ab
commit 07cf38b1a4
148 changed files with 377 additions and 19048 deletions
+32
View File
@@ -0,0 +1,32 @@
name: Register plugin release
on:
workflow_dispatch:
inputs:
repository:
description: Plugin repository (owner/name)
required: true
type: string
tag:
description: Published release tag
required: true
type: string
jobs:
register:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: https://github.com/actions/checkout@v4
- uses: https://github.com/actions/setup-node@v4
with:
node-version: '22'
- run: corepack enable && corepack pnpm install --frozen-lockfile
- name: Register completed release
run: node tools/sync-release.mjs --publish
env:
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_TOKEN: ${{ secrets.PLUGIN_RELEASE_TOKEN }}
CATALOG_WRITE_TOKEN: ${{ secrets.GITEA_TOKEN }}
CATALOG_REPOSITORY: ${{ gitea.repository }}
RELEASE_REPOSITORY: ${{ inputs.repository }}
RELEASE_TAG: ${{ inputs.tag }}