fix: 修复 plugin_type 使用无效的 builtin 值 #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release Plugin | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: 'Version to release (e.g., v0.1.0)' | |
| required: true | |
| default: 'v0.1.0' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Package plugin | |
| run: | | |
| # 创建插件包目录 | |
| mkdir -p release | |
| # 复制插件配置文件并打包 | |
| cd plugin | |
| zip -j ../release/config-switch-plugin.zip plugin.json config.json | |
| cd .. | |
| # 生成 checksum | |
| cd release | |
| sha256sum config-switch-plugin.zip > checksums.txt | |
| cd .. | |
| # 显示打包结果 | |
| ls -la release/ | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: ${{ github.event.inputs.version || github.ref_name }} | |
| name: Config Switch ${{ github.event.inputs.version || github.ref_name }} | |
| body: | | |
| ## Config Switch Plugin | |
| 一键切换 API 配置的 ProxyCast 插件,支持 Claude Code、Codex、Gemini 等客户端。 | |
| ### 功能特性 | |
| - **一键切换**:快速切换不同客户端的 API 配置 | |
| - **多客户端支持**:支持 Claude Code、Codex、Gemini 等主流 AI 客户端 | |
| - **配置同步检测**:自动检测外部配置变更,支持导入新配置 | |
| - **ProxyCast 集成**:添加 "ProxyCast" 配置可将凭证池转为标准 API | |
| ### 支持的客户端 | |
| | 客户端 | 配置文件路径 | | |
| |--------|-------------| | |
| | Claude Code | `~/.claude.json` | | |
| | Codex | `~/.codex/config.json` | | |
| | Gemini | `~/.gemini/config.json` | | |
| ### 安装 | |
| 1. 下载 `config-switch-plugin.zip` | |
| 2. 在 ProxyCast 插件中心通过本地文件安装 | |
| 3. 或通过插件中心推荐插件一键安装 | |
| draft: false | |
| prerelease: false | |
| files: release/* | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |