Skip to content

Commit 21c6888

Browse files
committed
添加发布和构建准备文件
1 parent 6f7bd05 commit 21c6888

File tree

6 files changed

+2072
-130
lines changed

6 files changed

+2072
-130
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish VS Code Extension
2+
3+
on:
4+
push:
5+
branches: [ "main" ] # 主分支推送时触发
6+
workflow_dispatch: # 允许手动触发
7+
8+
jobs:
9+
build-and-publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
cache: 'npm'
20+
21+
- name: Install Dependencies
22+
run: npm install
23+
24+
- name: Install vsce
25+
run: npm install -g @vscode/vsce
26+
27+
- name: Package Extension
28+
run: vsce package # 生成 .vsix 文件
29+
30+
- name: Publish to Marketplace
31+
uses: HaaLeo/publish-vscode-extension@v1 # 第三方 Action 简化发布
32+
with:
33+
pat: ${{ secrets.VSCODE_TOKEN }} # 引用 GitHub Secret
34+
skipDuplicate: true # 忽略重复版本错误

CHANGELOG.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
# Change Log
1+
# ChangeLog
22

3-
All notable changes to the "CodeReDesign" extension will be documented in this file.
3+
## [1.0.0] - 2025-01-29
4+
### Added
5+
- 初始版本发布,插件能够自动与 DeepSeek 集成进行代码重构。
6+
- 支持将多个 C++、Lua 和 Python 文件拼接为一个文件。
7+
- 上传重构需求,接收 DeepSeek API 返回结果。
8+
- 支持与 DeepSeek 进行交互,并回溯版本历史。
9+
- 配置 API key 支持,以及选择 diff 工具。
10+
11+
### Changed
12+
- 主体功能完成
413

5-
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
614

7-
## [Unreleased]
815

9-
- Initial release

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) [year] [your name or organization]
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

install.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
npm install --save-dev @types/vscode
22
npm install --save-dev @types/estree
3+
npm install vsce -g --save vsce

0 commit comments

Comments
 (0)