30 lines
923 B
YAML
30 lines
923 B
YAML
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
|
|
- 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 }}
|