Skip to content

Commit ccc82f9

Browse files
committed
2 parents 7ea7d5e + f32b4b9 commit ccc82f9

File tree

7 files changed

+340
-183
lines changed

7 files changed

+340
-183
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,44 @@ jobs:
7070

7171
- name: Push changes and tags
7272
run: |
73-
git push --follow-tags # 推送修改的 version 和 Git 标签到远程仓库
73+
git push --follow-tags
74+
env:
75+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
77+
- name: Get metadata from package.json
78+
id: metadata
79+
run: |
80+
NAME=$(node -p "require('./package.json').name")
81+
VERSION=$(node -p "require('./package.json').version")
82+
echo "NAME=$NAME" >> $GITHUB_ENV
83+
echo "VERSION=$VERSION" >> $GITHUB_ENV
7484
7585
- name: Package Extension
76-
run: vsce package # 生成 .vsix 文件
86+
run: vsce package # 使用默认文件名 CodeReDesign-<version>.vsix
87+
88+
- name: Create GitHub Release
89+
id: create_release
90+
uses: actions/create-release@v1
91+
env:
92+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
93+
with:
94+
tag_name: v${{ env.VERSION }}
95+
release_name: Release v${{ env.VERSION }}
96+
draft: false
97+
prerelease: false
98+
body: |
99+
Auto-generated release for version ${{ env.VERSION }}.
100+
Download the VSIX file below to install the extension.
101+
102+
- name: Upload VSIX to Release
103+
uses: actions/upload-release-asset@v1
104+
env:
105+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
106+
with:
107+
upload_url: ${{ steps.create_release.outputs.upload_url }}
108+
asset_path: ${{ env.NAME }}-${{ env.VERSION }}.vsix
109+
asset_name: ${{ env.NAME }}-${{ env.VERSION }}.vsix
110+
asset_content_type: application/zip
77111

78112
- name: Publish to Marketplace
79113
uses: HaaLeo/[email protected] # 第三方 Action 简化发布

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### 0.0.147 (2025-04-27)
6+
7+
### 0.0.146 (2025-04-27)
8+
9+
### 0.0.145 (2025-04-27)
10+
11+
### 0.0.144 (2025-04-26)
12+
13+
14+
### Bug Fixes
15+
16+
* 修正打包编译python的流程 ([90641be](https://github.com/yefansky/CodeReDesign/commit/90641be5e585d803a158d1a00565c2bb969da686))
17+
518
### 0.0.143 (2025-04-26)
619

720

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A VSCode extension for code refactoring and redesign by DeepSeek API.",
55
"publisher": "shellingye",
66
"icon": "images/icon.png",
7-
"version": "0.0.143",
7+
"version": "0.0.147",
88
"engines": {
99
"vscode": "^1.70.0"
1010
},

0 commit comments

Comments
 (0)