mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-30 12:25:29 +08:00
The packaging job pinned langbot-plugin 0.7.18 while Core runs 0.7.19, so it would validate archives with a CLI that no longer matches the SDK contracts the plugins are shipped against. Follow the Core pin. Co-authored-by: multica-agent <[email protected]>
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
name: Plugins / Build package
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
plugin:
|
|
description: 'Exact catalog path, for example Runner/LocalAgent'
|
|
type: string
|
|
required: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
package:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- uses: astral-sh/setup-uv@v5
|
|
- name: Install the plugin build CLI independently of Core
|
|
run: |
|
|
uv venv "$RUNNER_TEMP/plugin-build"
|
|
uv pip install --python "$RUNNER_TEMP/plugin-build/bin/python" 'langbot-plugin==0.7.19' pyyaml
|
|
echo "$RUNNER_TEMP/plugin-build/bin" >> "$GITHUB_PATH"
|
|
- name: Build selected plugin without publishing
|
|
env:
|
|
PLUGIN_PATH: ${{ inputs.plugin }}
|
|
run: python plugins/scripts/package_plugin.py "$PLUGIN_PATH" --output "$RUNNER_TEMP/plugin-packages"
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: plugin-package-${{ github.run_id }}
|
|
path: ${{ runner.temp }}/plugin-packages/*.lbpkg
|
|
if-no-files-found: error
|