refactor: separate plugin repositories and release-based catalog
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user